Full_Williams
Registered User.
- Local time
- Today, 16:17
- Joined
- Jul 2, 2002
- Messages
- 88
Hi there,
There's a lot of info in the forums on combining fields, but I could find anything to help me out with my specific problem.
I have 4 fields: [FirstName], [LastName], [MidInitial], & [Salutation].
I need to combined these into 1 field for a report so it shows.
ex: Doe, John, J., Ph.D
I can combine with the "&" Operator, but not all the records have [Salutation] or [MidInitial] populated and query results for some of the records are:
ex: Doe, John,,
I need the results without the trailing comma's if the [Salutation] and [MidInitial] fields are null.
So, I've tried using the IIf statement in the query:
Name: IIf(IsNull([MidInitial]),[LName]+", "+[FName],[LName]+", "+[FName]+" "+[MidInitial])
It works fine without using [Salutation], but I can't get it to work with [Salutiation].
Any suggestions on how I can get this all together.
Thanks,
Full Williams
There's a lot of info in the forums on combining fields, but I could find anything to help me out with my specific problem.
I have 4 fields: [FirstName], [LastName], [MidInitial], & [Salutation].
I need to combined these into 1 field for a report so it shows.
ex: Doe, John, J., Ph.D
I can combine with the "&" Operator, but not all the records have [Salutation] or [MidInitial] populated and query results for some of the records are:
ex: Doe, John,,
I need the results without the trailing comma's if the [Salutation] and [MidInitial] fields are null.
So, I've tried using the IIf statement in the query:
Name: IIf(IsNull([MidInitial]),[LName]+", "+[FName],[LName]+", "+[FName]+" "+[MidInitial])
It works fine without using [Salutation], but I can't get it to work with [Salutiation].
Any suggestions on how I can get this all together.
Thanks,
Full Williams