473,508 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Combine fields if they have same ID

3 New Member
Access 2003 WINXP
Does anyone know how to create a query to combine the SYM column fields below if the PartNumberID's are the same. Thanks for any help.
Rob

Current Table:

PartNumberID SYM
592 ic00225_0002_a
592 ic00225_0002_b
594 ic00227_0001
594 ic00227_0001_a
595 ic00227_0001
595 ic00227_0001_a

Ideal Output:
592 ic00225_0002_a, ic00225_0002_b
594 ic00227_0001, ic00227_0001_a
595 ic00227_0001, ic00227_0001_a
Apr 9 '07 #1
3 2596
ADezii
8,834 Recognized Expert Expert
Access 2003 WINXP
Does anyone know how to create a query to combine the SYM column fields below if the PartNumberID's are the same. Thanks for any help.
Rob

Current Table:

PartNumberID SYM
592 ic00225_0002_a
592 ic00225_0002_b
594 ic00227_0001
594 ic00227_0001_a
595 ic00227_0001
595 ic00227_0001_a

Ideal Output:
592 ic00225_0002_a, ic00225_0002_b
594 ic00227_0001, ic00227_0001_a
595 ic00227_0001, ic00227_0001_a
I can do this via VBA code and output the results to either a Table or Text File but as far as doing this via SQL, I'm not really sure. There are other Moderators/Experts who are more qualified than I in SQL and maybe they may have an answer for you. If all else fails, and you want to utilize the VBA code approach, let me know. I'll stayed tuned to this Post.
Apr 9 '07 #2
jayphilips
2 New Member
Hi,

How do you do this in VBA? I am running into the same issue where I have data in mulitple rows that I want to roll up into one field.

Ex:

SRID_NOTECDE SR_NOTE_TXT SR_NOTE_SEQ_NBR
310 - DSCR This one is fine since there is not other match 1
310 - PROB Last part of the code type is different so it's ok 1
462 - RSLV Text should be the firsts displayed in new notes field 3
462 - RSLV Should be inserted underneath the text in the above row 2
462 - RSLV Should be inserted underneath the text in the above row 1

Any help would be very much appreciated.
Apr 10 '07 #3
jayphilips
2 New Member
I found a way that works:

http://www.accessdb.info/content/view/102/40/

This site is great - has answers to lots of questions.
Apr 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
3715
by: Steve Jorgensen | last post by:
Hi all, I'm working on the schema for a database that must represent data about stock & bond funds over time. My connundrum is that, for any of several dimension fields, including the fund name...
2
1823
by: tina.boroff | last post by:
I didn't know what to use as a title for this. Here is the scenario: I have a op.reqedit.php page. This page a form where you input data. In this page I have split a MySQL field. It is called...
8
7072
by: mark | last post by:
Access2000 How do I write a query that combines the CTC field from each record below into one record? I need to concatenate the CTC field with a separator, like below: ...
1
2977
by: snOOp | last post by:
I am trying to combine the data from two similar tables into one query, but I need for all of the records from both tables to show up and I want the ones that have matching 'emplid' to be combined...
5
12972
by: Jamie Pittman via AccessMonster.com | last post by:
I have two tables with 5000 entries on them. One is based for regular time with several variables example (employee name, date,time in and out, code, customer, building) I have another table that...
1
5291
by: Sergio | last post by:
Hello everybody. Somebody has given me nine files with some data for the years 1997, 1998, ... , 2005. They are 9 different mdb files. Each one has many tables, forms, and other things. But all...
2
22638
by: drurjen | last post by:
Good morning. I am importing an XLS file into one of my tables. The fields are: Date Id Time IO 12/22/2006 2 12:48:45 PM 9 12/22/2006 16 5:40:55 AM 1 12/22/2006 16 12:03:59 PM 2 ...
1
3404
by: bluereign | last post by:
Thank you for your assistance. I am a novice looking to JOIN and append or combine records from 2 current Tables into 2 new Tables named below. I have been able to JOIN Tables with the script...
1
1713
by: LSGKelly | last post by:
Hi all. I need to combine two fields that contain numbers that are in a currency format (Ex: $1,500 $3,500). When I combine them, I want them to look like this -- $1,500/$3,500. When I combine...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.