A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Concatenate in a query - Access 2003



 
 
Thread Tools Display Modes
  #1  
Old July 9th, 2008, 05:56 PM posted to microsoft.public.access.queries
Judi
external usenet poster
 
Posts: 135
Default Concatenate in a query - Access 2003

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.
  #2  
Old July 9th, 2008, 06:16 PM posted to microsoft.public.access.queries
PhilT via AccessMonster.com
external usenet poster
 
Posts: 22
Default Concatenate in a query - Access 2003

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.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200807/1

  #3  
Old July 9th, 2008, 07:16 PM posted to microsoft.public.access.queries
Judi
external usenet poster
 
Posts: 135
Default Concatenate in a query - Access 2003

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

"PhilT via AccessMonster.com" wrote:

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.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200807/1


  #4  
Old July 9th, 2008, 08:05 PM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Concatenate in a query - Access 2003

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" wrote:

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

"PhilT via AccessMonster.com" wrote:

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.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200807/1


  #5  
Old July 9th, 2008, 08:26 PM posted to microsoft.public.access.queries
Judi
external usenet poster
 
Posts: 135
Default Concatenate in a query - Access 2003

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" wrote:

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" wrote:

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

"PhilT via AccessMonster.com" wrote:

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.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200807/1


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.