Reducing combo box selection possibilities

B

bbig80524

I would like to remove or hide, or in some way identify, an item in a combo
box once it has been selected. Items in this combo box can only be used once
so to avoid confusion I like to either hide the item or highlight it to let
the user know it has already been used. I have envoked a control that
prevents duplication but it would be a further enhancement to either remove
it or indicate it has already been used.

The item/record must remain in the supplying table.
 
J

John Vinson

I would like to remove or hide, or in some way identify, an item in a combo
box once it has been selected. Items in this combo box can only be used once
so to avoid confusion I like to either hide the item or highlight it to let
the user know it has already been used. I have envoked a control that
prevents duplication but it would be a further enhancement to either remove
it or indicate it has already been used.

The item/record must remain in the supplying table.

You can base the Combo Box on a "frustrated outer join" query. Let's
say that you're picking items from tblSource and storing them in
tblTarget. In order to present only those items in tblSource which
have NOT yet been selected into tblTarget, create a Query like:

SELECT <fields>
FROM tblSource LEFT JOIN tblTarget
ON tblSource.fieldname = tblTarget.fieldname
WHERE tblTarget.fieldname IS NULL
ORDER BY <fields>;

where fieldname is the combo's bound column field.

John W. Vinson[MVP]
(no longer chatting for now)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top