|
-
Dec 16th, 2003, 06:50 AM
#1
Thread Starter
Lively Member
Find specific value in dataset???
Hi, I'm here again.
I have a datatable with the following columns:
UserID (pk, autonumber)
UserName (text)
RightsID (number)
I fill a dataset (DSUsers) with the values of this datatable and now I want to find a specific value of this dataset: the RightsID of the first UserID in the table.
I tried the following code:
Dim UserRights as Integer
UserRights = DSUsers.Tables("tblUsers").Rows(0)("RightsID")
But I constantly get the value '0' while it should be '2' because thats the actual value in the database.
Is my selection code wrong?
thanks
TOm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|