Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with mailing Labels = Company or name!!!

Status
Not open for further replies.

Shadez

Programmer
Jul 5, 2001
57
0
0
US
I am creating mailing labels and need some assistance. If there is a company name in the company field I want this to be added to the report, but not name. Name only if the company field is not populated. So this one cell should be one or the other , but not both? Make any sense?
 
Change the control source for this field to something like this:
Code:
=IIf(IsNull([Company]), [Name], [Company])
 
Hi,

If I've understood you correctly the following should work:

Create a text box on the label,datasource =

iif(isnull([CompanyName]) or [CompanyName]="",[Name],[Companyname])

So, if the Company Name is null or = "" then the control will contain Name, otherwise it will be Company Name

HTH

Jane
 
Thanks a ton for the quick response, worked like a charm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top