Go Back   Access World Forums > Microsoft Access Discussion > Queries

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 05-15-2019, 01:07 PM   #1
RbTrail
Newly Registered User
 
Join Date: Mar 2019
Location: Southeast, USA
Posts: 11
Thanks: 11
Thanked 0 Times in 0 Posts
RbTrail is on a distinguished road
How do I concatenate a field from multiple records?

I am attempting to create a query that contains a field that lists the employee departments. The goal is to use this query in report headers, ie:

EMPLOYEE: 1111 DEPARTMENT: A, B, C
detail, detail, detail, etc

I've concatenated the Employee names before, but I'm not sure how that works when I'm refering to the same field in multiple records. I've attached screen shots of the query in question.
Attached Images
File Type: png qryEmpDept.png (9.5 KB, 6 views)
File Type: png qryEmpDept_result.png (56.9 KB, 5 views)

RbTrail is offline   Reply With Quote
Old 05-15-2019, 01:08 PM   #2
pbaldy
Wino Moderator
 
pbaldy's Avatar
 
Join Date: Aug 2003
Location: Nevada, USA
Posts: 32,769
Thanks: 11
Thanked 4,012 Times in 3,949 Posts
pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold
Re: How do I concatenate a field from multiple records?

Like this?

http://allenbrowne.com/func-concat.html
__________________
Paul
Microsoft Access MVP

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
pbaldy is offline   Reply With Quote
The Following User Says Thank You to pbaldy For This Useful Post:
RbTrail (05-15-2019)
Old 05-15-2019, 01:32 PM   #3
theDBguy
Iím here to help
 
theDBguy's Avatar
 
Join Date: Oct 2018
Location: SunnySandyEggo
Posts: 1,980
Thanks: 23
Thanked 506 Times in 495 Posts
theDBguy will become famous soon enough theDBguy will become famous soon enough
Re: How do I concatenate a field from multiple records?

Or like this. Sorry, can't resist.

__________________
Just my 2 cents...

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
theDBguy is offline   Reply With Quote
The Following User Says Thank You to theDBguy For This Useful Post:
RbTrail (05-15-2019)
Old 05-15-2019, 01:49 PM   #4
RbTrail
Newly Registered User
 
Join Date: Mar 2019
Location: Southeast, USA
Posts: 11
Thanks: 11
Thanked 0 Times in 0 Posts
RbTrail is on a distinguished road
Re: How do I concatenate a field from multiple records?

Thank you both! I knew it had to be simple.
RbTrail is offline   Reply With Quote
Old 05-15-2019, 01:50 PM   #5
pbaldy
Wino Moderator
 
pbaldy's Avatar
 
Join Date: Aug 2003
Location: Nevada, USA
Posts: 32,769
Thanks: 11
Thanked 4,012 Times in 3,949 Posts
pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold
Re: How do I concatenate a field from multiple records?

No problem.

__________________
Paul
Microsoft Access MVP

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
pbaldy is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to concatenate multiple records grouped by date? (AC2007) AOB Queries 3 05-02-2014 09:23 AM
Concatenate fields in multiple records into one record Seadog Queries 4 02-14-2012 06:56 PM
Concatenate multiple records into one textbox JamesMcS Reports 5 06-07-2010 05:54 AM
Concatenate multiple records into memo field detrie Queries 8 03-11-2007 09:48 AM
concatenate multiple records into one text field database Forms 3 06-24-2004 11:05 AM




All times are GMT -8. The time now is 12:25 AM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World