Simple question : How to reference a single row's data

  • Thread starter Thread starter MU
  • Start date Start date
M

MU

Hello,

I have the following code:

Dim userTableAdapter As New RSTTableAdapters.UsersTableAdapter
Dim userDataTable As RST.UsersDataTable

userDataTable = userTableAdapter.GetUserByEmailAddressPassword
(txtEmailAddress.Text, txtPassword.Text)

The query should only return 1 row. How do I reference the data
columns in the row that was sent back? I know how to do it with a
loop, but not a single row.

Thanks
 
If you are trying to get scalars and not a set.you can try 'executescalar'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top