Two Listboxes

  • Thread starter Thread starter DS
  • Start date Start date
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
 
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.
 
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

Access Cannot select items in listbox 1
ListBox.Requery 1
2 Listboxes 4
Populate Listbox 3
Sort with Listbox Selection On Top 1
Listbox and Fonts 2
Listbox Quandry 2
Link Textbox to Listbox 2

Back
Top