Do you expect someone to type everything for you ¿ I'll just give advice. If I were you, I would look into ADO.NET, there are plenty samples on google. Retyping this in .NET, won't help much in any case, because .NET uses DataSets, DataAdapters etc. Just my 2 cents.. HTG CodeGuru Article Reviewer