Table design or query

  • Thread starter Thread starter valerie
  • Start date Start date
V

valerie

I have a table with a field for last name and a field for
first name but I want to create a report that will group
by both first and last name on the same line. Is there a
way to create another field that will combine the two name
fields or a way to combine them in a query or report?

thanks in advance for any help or recommendations you can
offer.
 
Hi Valerie,

If you want to do it from the query you would do the following:

- In the query create a column that has
Field: FullName: [First Name] & [Last Name]

- In the Report now GroupBy "FullName" field in the query

If you want to do it strictly in a Report then do the following:

- In the Report select the menu option View > Sorting and Grouping
- In the Sorting and Grouping box under "Field/Expression" enter
[First Name] & [Last Name]
- Set Group Header/Footer On or Off as needed

NOTE: my preference would be to create the column in the query and then do
the Grouping in the Report.

I hope this helps! If you have additional questions on this topic, please
respond back to this posting.


Regards,

Eric Butts
Microsoft Access Support
(e-mail address removed)
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."

This posting is provided "AS IS" with no warranties, and confers no rights

--------------------
| Content-Class: urn:content-classes:message
| From: "valerie" <[email protected]>
| Sender: "valerie" <[email protected]>
| Subject: Table design or query
| Date: Mon, 15 Mar 2004 08:54:30 -0800
| Lines: 8
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcQKri8yNwabiVx2TlmubFQ4pai5Pg==
| Newsgroups: microsoft.public.access.tablesdbdesign
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.tablesdbdesign:77134
| NNTP-Posting-Host: tk2msftngxa09.phx.gbl 10.40.1.161
| X-Tomcat-NG: microsoft.public.access.tablesdbdesign
|
| I have a table with a field for last name and a field for
| first name but I want to create a report that will group
| by both first and last name on the same line. Is there a
| way to create another field that will combine the two name
| fields or a way to combine them in a query or report?
|
| thanks in advance for any help or recommendations you can
| offer.
|
 
I have a table with a field for last name and a field for
first name but I want to create a report that will group
by both first and last name on the same line. Is there a
way to create another field that will combine the two name
fields or a way to combine them in a query or report?

Either in a vacant Field cell in the Query upon which you base the
report, or in the Control Source of a textbox on the report, put

[FirstName] & " " & [LastName]

(Precede this with an = in the Textbox control source).
 
Back
Top