Multiple sources for a listbox or combo-box

W

Wintech

Hi There,
I have a database that I am using to store emails I send to customers &
suppliers.
What I want to know is this, is there a way that I can select more than one
source to create
the rowsourse for a combo box.

Eg:
In the Table1 there is a field called Email and in Table2 there is a field
called Email.
When I click the dropdown on the combo-box I want it to display any email
addresses that exist in both tables in one row.

Table1 - Email Table2 - Email
(e-mail address removed) (e-mail address removed)
(e-mail address removed) (e-mail address removed)
(e-mail address removed) (e-mail address removed)

Result:
(e-mail address removed)
(e-mail address removed)
(e-mail address removed)
(e-mail address removed)
(e-mail address removed)
(e-mail address removed)

Thanks
 
D

Douglas J. Steele

Use a Union query:

SELECT Email FROM Table1 UNION SELECT Email FROM Table2 ORDER BY Email
 

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