Hi Everyone,
I'm sort of new to Access/databases and I'm using the 2010 version. I've setup multiple tables/reports and defined relationships between them with no issues so far with what I'm doing.
However I wanted to setup a Display Name field using a calculated data type.
In this particular table it has fields for Company, Customer First Name, and Customer Last Name.
If it is an individual customer, only the first and last name fields would be populated with data and the company field would be left blank. If it is a business customer the company field would be populated and the customer first name and last name would be blank.
How do I create an expression for a Display Name field that would pull data from the company field if not blank or if blank combine the first and last name fields?
I know the expression for simply combining first and last name would be:
[First Name] & " " & [Last Name]
But not sure how to do the expression that would define the appropriate behavior based on whether the field is blank.
Any help or advice you could give would be greatly appreciated. If I could just see a correct model of the expression I could use it as a future reference point going forward.
Thanks again,
B R A D
I'm sort of new to Access/databases and I'm using the 2010 version. I've setup multiple tables/reports and defined relationships between them with no issues so far with what I'm doing.
However I wanted to setup a Display Name field using a calculated data type.
In this particular table it has fields for Company, Customer First Name, and Customer Last Name.
If it is an individual customer, only the first and last name fields would be populated with data and the company field would be left blank. If it is a business customer the company field would be populated and the customer first name and last name would be blank.
How do I create an expression for a Display Name field that would pull data from the company field if not blank or if blank combine the first and last name fields?
I know the expression for simply combining first and last name would be:
[First Name] & " " & [Last Name]
But not sure how to do the expression that would define the appropriate behavior based on whether the field is blank.
Any help or advice you could give would be greatly appreciated. If I could just see a correct model of the expression I could use it as a future reference point going forward.
Thanks again,
B R A D