How do I create a field in the report that displays as First Name and Last name

A

Asha

I am creating a report. The report is based off of two
tables. Log Table and User table. The log table has a
userid field that is linked to the primary key of
User.UserID. I am trying to get the firstName + lastName
to display on the report. I can use a combo box, and link
it to the user table, but only the first name appears. I
can add two combo boxes to get both first name and last
name to appear, but they are incorrectly spaced, and it
looks really bad. I think you can probably do a text box,
and enter a formula to go pull from the user table first
name and last name, but I don't know how to do this. or
maybe you can do a formula on the two combo boxes to
eliminate white space...

Can someone please help.....
 
R

Rick Brandt

Asha said:
I am creating a report. The report is based off of two
tables. Log Table and User table. The log table has a
userid field that is linked to the primary key of
User.UserID. I am trying to get the firstName + lastName
to display on the report. I can use a combo box, and link
it to the user table, but only the first name appears. I
can add two combo boxes to get both first name and last
name to appear, but they are incorrectly spaced, and it
looks really bad. I think you can probably do a text box,
and enter a formula to go pull from the user table first
name and last name, but I don't know how to do this. or
maybe you can do a formula on the two combo boxes to
eliminate white space...

Can someone please help.....

Use a TextBox with the ControlSource...

=[firstName] & " " & [lastName]
 
J

JSand42737

"Asha" said:
I am creating a report. The report is based off of two
tables. Log Table and User table. The log table has a
userid field that is linked to the primary key of
User.UserID. I am trying to get the firstName + lastName
to display on the report. I can use a combo box, and link
it to the user table, but only the first name appears. I
can add two combo boxes to get both first name and last
name to appear, but they are incorrectly spaced, and it
looks really bad. I think you can probably do a text box,
and enter a formula to go pull from the user table first
name and last name, but I don't know how to do this. or
maybe you can do a formula on the two combo boxes to
eliminate white space...

Can someone please help.....

Asha

Add a text box to the report. Set the ControlSource of this Text Box to:

=[FirstName] & " " & [LastName]

This will produce output like "Joe Bloggs".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top