GregoireLeGros
Registered User.
- Local time
- Today, 22:48
- Joined
- Oct 31, 2007
- Messages
- 13
I have a table including a personkey, emailaddress1 and emailaddress2.
On my form I wish to have a combo box where I can select which email address to use. I would like to build a union query as the row source for the combo box.
So far I have
SELECT tblPeople.PersonalEmail1
FROM tblPeople
UNION SELECT tblPeople.PersonalEmail2
WHERE (((tblPeople.PersonKey)=2226))
FROM tblPeople;
which doesnt work. If I leave out the where clause then the query returns every email address from every record. I want only email addresses belonging to person 2226. Any help appreciated.
On my form I wish to have a combo box where I can select which email address to use. I would like to build a union query as the row source for the combo box.
So far I have
SELECT tblPeople.PersonalEmail1
FROM tblPeople
UNION SELECT tblPeople.PersonalEmail2
WHERE (((tblPeople.PersonKey)=2226))
FROM tblPeople;
which doesnt work. If I leave out the where clause then the query returns every email address from every record. I want only email addresses belonging to person 2226. Any help appreciated.