|
-
Sep 18th, 2002, 03:36 AM
#1
Thread Starter
Fanatic Member
Populate combo in code
I populate a combobox with the following code (taken from Karl Moores great book).
This puts the description in the combo e.g "Dell PC" but I want to know how I can put the field "ItemID" in the combo as Value member property. I need to search on ID but view description.
For i = 1 To objdataset.Tables("tblItems").Rows.Count
strCurrentID = objdataset.Tables("tblItems").Rows(i - 1).Item("ItemDescription")
cboOwners.Items.Add(strCurrentID)
Next
Can anyone Help?
Thanks in Advance
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
|