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
|
|||
|
|||
How do I combine data from two fields into one using a query?
I am working on a project and there is an existng table which includes a
FirstName and a LastName field. I am trying to design a query to include the data from both these fields in one column with a space in between them and a different heading when the query is run. How do I design that part of the query to provide the information I need in the desired format? I am using Access 2003 Thank you |
#2
|
|||
|
|||
you need to concatenate the two fields, as
FullName: FirstName & " " & LastName hth "thjofe" wrote in message ... I am working on a project and there is an existng table which includes a FirstName and a LastName field. I am trying to design a query to include the data from both these fields in one column with a space in between them and a different heading when the query is run. How do I design that part of the query to provide the information I need in the desired format? I am using Access 2003 Thank you |
#3
|
|||
|
|||
thjofe wrote:
I am working on a project and there is an existng table which includes a FirstName and a LastName field. I am trying to design a query to include the data from both these fields in one column with a space in between them and a different heading when the query is run. How do I design that part of the query to provide the information I need in the desired format? Just use a calculated field in the query: FullName: FirstName & " " & LastName -- Marsh MVP [MS Access] |
#4
|
|||
|
|||
I did that but now a popup box appears and asks me to enter a parameter for
both the first and last name. I don't understand. Could you please elaborate on the "concatenate" part of your response. I am getting the desired output but with the popup box I leave it blank and the entire column is left blank instead of showing the two names combined. Please help. "tina" wrote: you need to concatenate the two fields, as FullName: FirstName & " " & LastName hth "thjofe" wrote in message ... I am working on a project and there is an existng table which includes a FirstName and a LastName field. I am trying to design a query to include the data from both these fields in one column with a space in between them and a different heading when the query is run. How do I design that part of the query to provide the information I need in the desired format? I am using Access 2003 Thank you |
#5
|
|||
|
|||
I did that but now a popup box appears and asks me to enter a parameter for
both the first and last name. I don't understand. Could you please elaborate on the "concatenate" part of your response. I am getting the desired output but with the popup box I leave it blank and the entire column is left blank instead of showing the two names combined. Please help. "Marshall Barton" wrote: thjofe wrote: I am working on a project and there is an existng table which includes a FirstName and a LastName field. I am trying to design a query to include the data from both these fields in one column with a space in between them and a different heading when the query is run. How do I design that part of the query to provide the information I need in the desired format? Just use a calculated field in the query: FullName: FirstName & " " & LastName -- Marsh MVP [MS Access] |
#6
|
|||
|
|||
There's nothing wrong with the concatenation. When you are
prompted for a value, it means that the thing you are prompted for is not available in the query's table. In this case, it probably means that you misspelled the names of the fields. Check them carefully, they must be **exactly** the same as the fields in the table. -- Marsh MVP [MS Access] thjofe wrote: I did that but now a popup box appears and asks me to enter a parameter for both the first and last name. I don't understand. Could you please elaborate on the "concatenate" part of your response. I am getting the desired output but with the popup box I leave it blank and the entire column is left blank instead of showing the two names combined. thjofe wrote: I am working on a project and there is an existng table which includes a FirstName and a LastName field. I am trying to design a query to include the data from both these fields in one column with a space in between them and a different heading when the query is run. How do I design that part of the query to provide the information I need in the desired format? "Marshall Barton" wrote: Just use a calculated field in the query: FullName: FirstName & " " & LastName |
#7
|
|||
|
|||
thanks for your help
"Marshall Barton" wrote: There's nothing wrong with the concatenation. When you are prompted for a value, it means that the thing you are prompted for is not available in the query's table. In this case, it probably means that you misspelled the names of the fields. Check them carefully, they must be **exactly** the same as the fields in the table. -- Marsh MVP [MS Access] thjofe wrote: I did that but now a popup box appears and asks me to enter a parameter for both the first and last name. I don't understand. Could you please elaborate on the "concatenate" part of your response. I am getting the desired output but with the popup box I leave it blank and the entire column is left blank instead of showing the two names combined. thjofe wrote: I am working on a project and there is an existng table which includes a FirstName and a LastName field. I am trying to design a query to include the data from both these fields in one column with a space in between them and a different heading when the query is run. How do I design that part of the query to provide the information I need in the desired format? "Marshall Barton" wrote: Just use a calculated field in the query: FullName: FirstName & " " & LastName |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Repost: Record 1 contained too few data fields | HJ | Mailmerge | 0 | May 20th, 2005 01:27 PM |
multiple docs, one data source | kp | Mailmerge | 12 | January 31st, 2005 04:41 PM |
Pulling data from 1 sheet to another | Dave1155 | Worksheet Functions | 1 | January 12th, 2005 05:55 PM |
How do I get 3 series in sync with the x-axis? | zizbird | Charts and Charting | 10 | October 25th, 2004 01:23 PM |
SQL view of messed up action queries | Kendra | Running & Setting Up Queries | 2 | August 31st, 2004 09:53 PM |