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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|