J
Joe F. Roush III
I am writing a mailing lablel Database in which some people provide home
addresses and others provide business addresses. In the contact table I have
Firstname, lastname, business address, home address, and a yes no field. I
want to create a query in which it searches for everyone with the lasname
"smith" and if the yes no field has a 1 select the home address and if the
yes/no has a 0 select the business address. Something like:
SELECT LastName, Firstname, (If y/n = 1 then HomeAddress) (if y/n = 0 then
BusinessAddress)
FROM tblContact
WHERE LastName = 'Smith'
If this doesn't make sense let me know and I will try to explain a little
better
addresses and others provide business addresses. In the contact table I have
Firstname, lastname, business address, home address, and a yes no field. I
want to create a query in which it searches for everyone with the lasname
"smith" and if the yes no field has a 1 select the home address and if the
yes/no has a 0 select the business address. Something like:
SELECT LastName, Firstname, (If y/n = 1 then HomeAddress) (if y/n = 0 then
BusinessAddress)
FROM tblContact
WHERE LastName = 'Smith'
If this doesn't make sense let me know and I will try to explain a little
better