R
RKH
The following sql query returns a good result except some of the enteries do
have a business address and I will be using the query to produce labels.
What I would like to do is if the BusinessAddress1, BusinessCity,
BusinessState and BusinessPostalCode are blank then use the Home Address,
HomeCity, HomeState and HomePostalCode. So will I be able to do this using
the criteria or do I have to write a sql query. Either way would someone
give some help to acheive a good result?
Thanks,
Richard
SELECT [Main Directory].[Sr Pastor], [Main Directory].NoPastorChurch, [Main
Directory].[College Personnel], [Main Directory].[Ast Pastor], [Main
Directory].Other, [Main Directory].Title, [Main Directory].FirstName, [Main
Directory].LastName, [Main Directory].Business, [Main
Directory].BusinessAddress1, [Main Directory].BusinessCity, [Main
Directory].BusinessState, [Main Directory].BusinessPostalCode, [Main
Directory].HomeAddress, [Main Directory].HomeCity, [Main
Directory].HomeState, [Main Directory].HomePostalCode
FROM [Main Directory]
WHERE ((([Main Directory].[Sr Pastor])="Y")) OR ((([Main Directory].[Ast
Pastor])="Y")) OR ((([Main Directory].[College Personnel])="Y")) OR ((([Main
Directory].Other)="Y")) OR ((([Main Directory].NoPastorChurch)="Y"));
have a business address and I will be using the query to produce labels.
What I would like to do is if the BusinessAddress1, BusinessCity,
BusinessState and BusinessPostalCode are blank then use the Home Address,
HomeCity, HomeState and HomePostalCode. So will I be able to do this using
the criteria or do I have to write a sql query. Either way would someone
give some help to acheive a good result?
Thanks,
Richard
SELECT [Main Directory].[Sr Pastor], [Main Directory].NoPastorChurch, [Main
Directory].[College Personnel], [Main Directory].[Ast Pastor], [Main
Directory].Other, [Main Directory].Title, [Main Directory].FirstName, [Main
Directory].LastName, [Main Directory].Business, [Main
Directory].BusinessAddress1, [Main Directory].BusinessCity, [Main
Directory].BusinessState, [Main Directory].BusinessPostalCode, [Main
Directory].HomeAddress, [Main Directory].HomeCity, [Main
Directory].HomeState, [Main Directory].HomePostalCode
FROM [Main Directory]
WHERE ((([Main Directory].[Sr Pastor])="Y")) OR ((([Main Directory].[Ast
Pastor])="Y")) OR ((([Main Directory].[College Personnel])="Y")) OR ((([Main
Directory].Other)="Y")) OR ((([Main Directory].NoPastorChurch)="Y"));