Combining data - remedial question :)

G

Guest

I have the fields LastName and FirstName in a datatable.
I need to combine this information into the format "LastName, FirstName*".
Can anyone help me do this?
Thanks!
Andrea
 
A

Allen Browne

In query design, type this into a fresh column in the Field row:
[LastName] & ", " + [FirstName]
 
G

Guest

You might want to check that everyone has a first and last name. In our
organization there is one person with only a single name.

-Dorian
 
G

Guest

Thanks Allen!
Is there a way to include the "*" after the [FirstName]?


Allen Browne said:
In query design, type this into a fresh column in the Field row:
[LastName] & ", " + [FirstName]

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Andrea said:
I have the fields LastName and FirstName in a datatable.
I need to combine this information into the format "LastName, FirstName*".
Can anyone help me do this?
Thanks!
Andrea
 
A

Allen Browne

I don't think I understand that question.

This is displaying fields.
There is no criteria here.
So I don't follow the idea of adding a wildcard.

If you literally want an asterisk attached to the end of everybody's first
name, go right ahead and add it.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Andrea said:
Thanks Allen!
Is there a way to include the "*" after the [FirstName]?


Allen Browne said:
In query design, type this into a fresh column in the Field row:
[LastName] & ", " + [FirstName]

Andrea said:
I have the fields LastName and FirstName in a datatable.
I need to combine this information into the format "LastName,
FirstName*".
Can anyone help me do this?
 

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