Concatenate in a query - Access 2003

J

Judi

I have a table which refers to two groups of salesmen, District Managers and
Sales Service Managers. DM's are over SSM's and both are referred to in the
table.

The table only holds codes for each salesman which then refers to another
table which holds all salesmen's info. This table seperates first name from
last name.

I need to create a query that refers to a lot of different information,
including the DM and SSM for each job. Is there a way, in the main query to
concatenate the names of each so that the names will show up in one field in
the main query results?

I am sorry for the long explanation, but I am relatively new to Access.

Thank you for any help you can give me. I know next to nothing about VB or
macros, so please try to keep it simple. You can feel free to talk to me like
a child.
 
J

Judi

I did that, and now it is asking for the names in the parameters. I already
have dates as perameters.

PhilT via AccessMonster.com said:
Judi,

Let assume the table has [lastname] fieldname and [firstname] field name
separately as you indicated. From Query you need create a new field name,
right click in field name and select build. Type [name]:[tablename]!
[firstname] & " " & [tablename]![lastname] to display firstname and lastname
or vice versa.

Judi said:
I have a table which refers to two groups of salesmen, District Managers and
Sales Service Managers. DM's are over SSM's and both are referred to in the
table.

The table only holds codes for each salesman which then refers to another
table which holds all salesmen's info. This table seperates first name from
last name.

I need to create a query that refers to a lot of different information,
including the DM and SSM for each job. Is there a way, in the main query to
concatenate the names of each so that the names will show up in one field in
the main query results?

I am sorry for the long explanation, but I am relatively new to Access.

Thank you for any help you can give me. I know next to nothing about VB or
macros, so please try to keep it simple. You can feel free to talk to me like
a child.
 
D

Duane Hookom

Do you want to combine multiple related records into a single expression? If
so, you should reply with table/field names as well as data types and sample
records.

--
Duane Hookom
Microsoft Access MVP


Judi said:
I did that, and now it is asking for the names in the parameters. I already
have dates as perameters.

PhilT via AccessMonster.com said:
Judi,

Let assume the table has [lastname] fieldname and [firstname] field name
separately as you indicated. From Query you need create a new field name,
right click in field name and select build. Type [name]:[tablename]!
[firstname] & " " & [tablename]![lastname] to display firstname and lastname
or vice versa.

Judi said:
I have a table which refers to two groups of salesmen, District Managers and
Sales Service Managers. DM's are over SSM's and both are referred to in the
table.

The table only holds codes for each salesman which then refers to another
table which holds all salesmen's info. This table seperates first name from
last name.

I need to create a query that refers to a lot of different information,
including the DM and SSM for each job. Is there a way, in the main query to
concatenate the names of each so that the names will show up in one field in
the main query results?

I am sorry for the long explanation, but I am relatively new to Access.

Thank you for any help you can give me. I know next to nothing about VB or
macros, so please try to keep it simple. You can feel free to talk to me like
a child.
 
J

Judi

I am sorry, I had to just use the last name because the person who needed it
was in a hurry. I will work on this further in the future though, because I
hope to refine my work as I develop my knowledge.

Thank you to both of you.

Duane Hookom said:
Do you want to combine multiple related records into a single expression? If
so, you should reply with table/field names as well as data types and sample
records.

--
Duane Hookom
Microsoft Access MVP


Judi said:
I did that, and now it is asking for the names in the parameters. I already
have dates as perameters.

PhilT via AccessMonster.com said:
Judi,

Let assume the table has [lastname] fieldname and [firstname] field name
separately as you indicated. From Query you need create a new field name,
right click in field name and select build. Type [name]:[tablename]!
[firstname] & " " & [tablename]![lastname] to display firstname and lastname
or vice versa.

Judi<>< wrote:
I have a table which refers to two groups of salesmen, District Managers and
Sales Service Managers. DM's are over SSM's and both are referred to in the
table.

The table only holds codes for each salesman which then refers to another
table which holds all salesmen's info. This table seperates first name from
last name.

I need to create a query that refers to a lot of different information,
including the DM and SSM for each job. Is there a way, in the main query to
concatenate the names of each so that the names will show up in one field in
the main query results?

I am sorry for the long explanation, but I am relatively new to Access.

Thank you for any help you can give me. I know next to nothing about VB or
macros, so please try to keep it simple. You can feel free to talk to me like
a child.
 

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