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  

How do I combine data from two fields into one using a query?



 
 
Thread Tools Display Modes
  #1  
Old September 19th, 2005, 12:41 AM
thjofe
external usenet poster
 
Posts: n/a
Default 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  
Old September 19th, 2005, 01:11 AM
tina
external usenet poster
 
Posts: n/a
Default

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  
Old September 19th, 2005, 01:24 AM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

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  
Old September 19th, 2005, 02:36 AM
thjofe
external usenet poster
 
Posts: n/a
Default

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  
Old September 19th, 2005, 02:45 AM
thjofe
external usenet poster
 
Posts: n/a
Default

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  
Old September 19th, 2005, 04:39 AM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

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  
Old September 19th, 2005, 05:07 AM
thjofe
external usenet poster
 
Posts: n/a
Default

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

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

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


All times are GMT +1. The time now is 06:17 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.