ADO DOT NET
Well-known member
- Joined
- Dec 20, 2006
- Messages
- 156
Code:
Dim ReadUsers As New OleDb.OleDbCommand("SELECT Email, FirstName, LastName FROM Users WHERE GroupID = " + MyID + "", MyConnection)
Dim MyReaders As OleDbDataReader = ReadUsers.ExecuteReader
While MyReaders.Read
MsgBox (MyReaders("Email").ToString)
End While
The above code works fine, just I have 1 question:
When I SELECT Email FROM USERS WHERE GroupID = blah
How can I detect that how many fields have been selected?!
Thanks