473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Group part options by part

I have a few tables describing parts and thier options.
tblParts pNumber and tblOptions with pNumber, option
I do a SELECT FROM query with a join and I get

Part Option
123 A
123 B
123 D
234 A
234 D

Can I get the following using SQL or is this something that needs VBA
code or a combination of both.
Part Options
123 A,B,D
234 A,D

Thanks

May 31 '07 #1
2 1387
You require this:
http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='Generic%20Function%2 0To%20Concatenate%20Child%20Records'

Cheers,
Jason Lepack
On May 31, 1:32 pm, asc4john <j...@kinnear.cawrote:
I have a few tables describing parts and thier options.
tblParts pNumber and tblOptions with pNumber, option
I do a SELECT FROM query with a join and I get

Part Option
123 A
123 B
123 D
234 A
234 D

Can I get the following using SQL or is this something that needs VBA
code or a combination of both.
Part Options
123 A,B,D
234 A,D

Thanks

May 31 '07 #2
On May 31, 11:41 am, Jason Lepack <jlep...@gmail.comwrote:
You require this:http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='Gene...

Cheers,
Jason Lepack

On May 31, 1:32 pm,asc4john<j...@kinnear.cawrote:
I have a few tables describing parts and thier options.
tblParts pNumber and tblOptions with pNumber, option
I do a SELECT FROM query with a join and I get
Part Option
123 A
123 B
123 D
234 A
234 D
Can I get the following using SQL or is this something that needs VBA
code or a combination of both.
Part Options
123 A,B,D
234 A,D
Thanks
Thank you it seems to do what I need.

Jun 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
0
by: Betty Harvey | last post by:
The next meeting of the XML Users Group will be held on Wednesday, November 19, 2003 at the American Geophysical Union (AGU) at 2000 Florida Avenue, N.W., Washington, DC 20009-1277. The meeting...
0
by: Betty Harvey | last post by:
Happy 2004! I hope everyone had a great holiday and will have a good new year. The next meeting of the XML Users Group will be held on Wednesday, January 21, 2004 at the American Geophysical...
3
by: Google Mike | last post by:
On Linux, I need to ask what your favorite installation options are for a PHP app as a kind of poll. In this first part, I discuss the Install Wizard choices. In Part 2, I discuss the database...
2
by: Danny | last post by:
HI, I am trying to do a group by such as this: "select code, colors from productdb group by code, colors" I need to sort on the key field, but cannot throw in the 'ordre by key', because i...
2
by: andy.mcvicker | last post by:
Hi Gang I used the Option Group wizard to create a group of radio buttons on a form. It created it with three options and it looks fine. However when I run the form the first option is checked...
3
by: lorirobn | last post by:
Hi... I think this is a really simple question, but I can't find the answer. I have a subreport that has columns and column headings. The subreport can span over several pages. The column...
0
by: Walks | last post by:
This is my first project so I am very new to Access, Programing and so on. My project. I have a Data Access Page that has a spreadsheet attached and a Combobox. When I change the value in...
0
by: Lacreme | last post by:
I am trying to write a script with the getopts options. It does everything I want it to except tell me when the specified user has logged off. I am not sure if I set the option wrong or if it is the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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...

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.