Discussion Locked

Access: Custom concatenation of fields

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
A table in Access 2000 contains the fields [Last Name] and [First Name]. On the report form design, the basic concatentation of the field is [Last Name]&", "&[First Name]. If [Last Name] is blank, I want the report to display only [First Name] without the preceding comma. I realize this may require a VB macro or prior query. I just don't know what I need.

6 replies

by halleyc

type the following text in the control source of the field

=IIf(Len(Trim([LastName]))>0,[LastName] & "," & [FirstName],[FirstName])

by bernie.wilson

While this answer did allow me to make some changes to the data entry, I'm still looking for a way to pull the report and get what I'm seeking.

by bernie.wilson

This answer was similar to the first in that it did allow me to make some changes to the data entry. Look for a re-post of the question (perhaps by a friend of mine with some more points!)

by dmiles

Open the report in Design View
If you want to format,click report
To format an individual section,click the section selector
Click the auto format

This discussion is closed to new replies.