A
Aussie Rules
Hi,
In all my coding to date, i have been dealing with multiple results in my
dataset, looping through them with
SqlDataAdapterContactProfile.Fill(contact, "Profile")
For Each pRow In contact.Tables("Profile").Rows
label1.text = prow("fieldname")
Next
I now have a situation where I only return a single record, and want to know
how i should deal with this situation. There is no point having a for each
loop
as there is only the one row.
What code should I have so that I can access the single record result set
Thanks
In all my coding to date, i have been dealing with multiple results in my
dataset, looping through them with
SqlDataAdapterContactProfile.Fill(contact, "Profile")
For Each pRow In contact.Tables("Profile").Rows
label1.text = prow("fieldname")
Next
I now have a situation where I only return a single record, and want to know
how i should deal with this situation. There is no point having a for each
loop
as there is only the one row.
What code should I have so that I can access the single record result set
Thanks