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
3 2603 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.
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.
I found a way that works:
http://www.accessdb.in fo/content/view/102/40/
This site is great - has answers to lots of questions.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 itself, the dimension may be represented in
different ways over time, and may split or combine from one period to the
next.
When querying from the database for an arbitrary time period, I need the data
to be rolled up to the smallest extent...
|
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
MachineTypeOfWork and is split into Replace, Adjusted, REbuild,
Inspected and Repair. These all become check boxes for the user. The
form submits to op.reqadd.php. In this page I first have a hidden box
where I combine all of the above into...
|
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:
BattID VehicleID STDATE STTIME CTC
LKO500HF 00000000 10/27/2003 4:13:51 AM 4
LKO500HF 00000000 10/27/2003 5:13:51 AM 5
LKO500HF 00000000 10/27/2003 10:13:51 AM 6
LKO500HF 00000000 10/27/2003 11:13:51 AM 4
|
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 into
one record showing both the 'empstatus' and 'strole' fields.
The following query works, but does not combine the matching records:
SELECT givenname, sn, empstatus, emplid, ssn FROM dbo_EmpData
WHERE empstatus='A'
UNION ALL SELECT...
|
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 works with overtime but has
the same feilds within the table. I want to be able to run a report that
combines the regular time and overtime for the warehouse and seperated by
each customer. I have tried join tables but I keep ending with, (if it...
| |
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 of them have a table called EAL, with fields like year
(this year contains, for all the registers, the year corresponding
the one indicated by the file name), name, surname, country and much
more fields.
|
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
When I do the import, I get the following:
|
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 below. My problem is if I don’t use the WHERE clause in my script below, the script can query up to 3 records with the same “LoanNo” due to the fact that there can be up to 3 “TypeCodes” in each Table (Borrower, Co-Borrower 1 and Co-Borrower 2...
|
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 them in the query, they look like this 1500/3500. Is there a way to combine and retain the currency format?
Thank you!
Kelly
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |