• The article is basic and good.

    Regarding the VB.NET code posted, I would recommend opening the connection as late as possible and close as early as you can, than have the open statement at the beginning.

    and you also forgot to close the connection.

    so it would be:

    conn.Open()

    'execute the query

    myCommand.ExecuteNonQuery()

    conn.close()

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************