How do you have a listbox, which is displaying items from table A, be used as part of a data entry page that is used to enter new records into table B?
A list has a visible part, and an invisible 'value' part. Make the 'value' the code used to link the two tables.
This is very easy if you use the DTCs (design-time controls).
A list can be single select (the default) - similar to a combo. Or multi-select.
In either case, when the form is submitted, the Request buffer will include the list name followed by the selected value (or comma separated list of values).
So you could use this in an SQL update...
"Update xTable Set aLinkCol = " & Request.Form("alist" _
& " Where .....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.