Not exactly...I want to be able (on a form) to choose a value for a
specific field from one of several list bozes. For example, I want
the user to select a value for the field CPT1 in my table tblCodes on
a form from one of three separate list boxes which each relate to a
different table. I have the form with the list boxes etc... but I
can't figure-out how to select the value from more than one possible
list.
Does that make sense?
Not really! If you want CPT1 to be drawn from a list of values, it
should be *ONE* list of values. You certainly will not be able to
enforce relational integrity to three different tables! What are these
three listboxes? How do they differ? What is CPT1 and why is it set up
this way?
Two comments to answer your question directly though:
- You can have multiple controls on a Form all bound to the same field
(CPT1 in this case). If you select a value from one of them it will
override any selection from the others; if the three listboxes' row
source properties are different, it's most likely that two of the
listboxes will be blank, since the selected value isn't valid for that
listbox's rowsource.
- You could use a single listbox based on a UNION query stringing the
three tables together. See UNION in the online help.