Combo box to only list choices that are not in the table

  • Thread starter Thread starter qwerty via AccessMonster.com
  • Start date Start date
Q

qwerty via AccessMonster.com

Hi,

How can I get a combo box to only display choices that are still not in the
table (control source)??

Thank you very much in advance for our replies.
 
qwerty via AccessMonster.com said:
Hi,

How can I get a combo box to only display choices that are still not in
the
table (control source)??

Thank you very much in advance for our replies.

Do you mean your combo box row source is a lookup table and the choice is
stored in a main table and is the combo's control source? If so then create
a query with a "not in" clause in the criteria as the combo's row source
(untested):

Select [MyField] from tblLookup where [MyField] Not In (Select [MyField]
from tblMain)

HTH - Keith.
www.keithwilby.com
 
Thanks! Worked perfectly.

Keith said:
[quoted text clipped - 3 lines]
Thank you very much in advance for our replies.

Do you mean your combo box row source is a lookup table and the choice is
stored in a main table and is the combo's control source? If so then create
a query with a "not in" clause in the criteria as the combo's row source
(untested):

Select [MyField] from tblLookup where [MyField] Not In (Select [MyField]
from tblMain)

HTH - Keith.
www.keithwilby.com
 

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

Back
Top