Two Listboxes

D

DS

I have 2 listboxes based on the same table.
I need the 2nd listbox to show what records are not in the first
listbox. How would I do this?
Thanks
DS
 
A

Allen Browne

What is the RowSource for the first list box?

If it is a simple query from one table, the second list box will be based on
a WHERE clause that picks the alternative records. Don't forget to handle
the Nulls:
http://allenbrowne.com/casu-02.html

If it is a 2-table query, then you might be able to use the Unmatched Query
Wizard to help you get the SQL statement you need for the RowSource of the
2nd list box.

After you get that working, you may need to Requery the other list box when
one changes.
 
D

DS

Allen said:
What is the RowSource for the first list box?

If it is a simple query from one table, the second list box will be based on
a WHERE clause that picks the alternative records. Don't forget to handle
the Nulls:
http://allenbrowne.com/casu-02.html

If it is a 2-table query, then you might be able to use the Unmatched Query
Wizard to help you get the SQL statement you need for the RowSource of the
2nd list box.

After you get that working, you may need to Requery the other list box when
one changes.
Thanks, That is an easy solution!
DS
 

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

Similar Threads

2 Listboxes 4
Access Cannot select items in listbox 1
depending listboxes 7
Listbox selection question 2
Listbox not populating every time 1
ListBox.Requery 1
Listbox questions 2
ACC2003: Last Row in Listbox not visible 3

Top