|
-
Sep 17th, 2002, 07:32 AM
#1
Thread Starter
PowerPoster
ComboBox and Xtra Data
Ok, I have a combo box loading 30 values from the DB BUT I want to load the items id in the tag property but it only stores one value for the whole combo box. How can I store the id in like a hidden field so when the user selects the item I pass only the id?
Get it?
Thanks
-
Sep 17th, 2002, 07:38 AM
#2
is this normal VB as opposed to ASP etc?
if so, you can use the ItemData property, which is a second list (numeric only) which matches the items in the main list.
To use it:
combo1.additem "item"
combo1.ItemData(combo1.NewIndex) = Id_no
-
Sep 17th, 2002, 07:41 AM
#3
Thread Starter
PowerPoster
Originally posted by si_the_geek
is this normal VB as opposed to ASP etc?
if so, you can use the ItemData property, which is a second list (numeric only) which matches the items in the main list.
To use it:
combo1.additem "item"
combo1.ItemData(combo1.NewIndex) = Id_no
GREAT! That was it. Thank you very much.
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
|