I'm using sqlite, and I think the querry should look like: DIM answer AS Result DIM querry As String ............................... querry="SELECT.........;" answer=YourConnection.Exec(querry) FOR EACH answer do what you want..... NEXT