Solved

MS Access Query Combining Unsure If to Use a Union Query or Not

Posted on 2016-11-28
3
16 Views
Last Modified: 2016-11-28
In my setup I have Parent Products and Product Variations (Children). Table [SKUs] is the Parents and Table [Products] is the Children. I have successfully made multiple Select Queries to come up with a final Children Queries result. This Result includes all the Children and their attributes.

The final part that I can not come up with is how to also Insert the Parents into this list. In the End Result I need my list to have the parents and the children together. Reunite the family ;)

Do I use a Union Query or what?

Here is an example image of what I need:
ParentChildSampleImage.jpg
Here is some of my Children Results currently (ProdConSku is the Children SKU):
ParentChildSampleImage2.jpg
Thanks!
0
Comment
Question by:Dustin Stanley
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
PatHartman earned 500 total points
Comment Utility
If you want the parent data in the same row as the child data (it will look like it repeats), then join the two tables/queries.  If you want the parent data to be separate rows along with child data but not related at all except perhaps by sorting to bring them in some logical order, then use a union.
0
 

Author Comment

by:Dustin Stanley
Comment Utility
Ok honestly I have never used a Union Query. I just researched and that is what my gut told me was the best option.
I need the Parent on a seperate row. I also Need the Parents [Skus].[SKU] and the Childrens [qryExport].[ProdConSku] under the same column in the New Query. Maybe just name the Column SKU. How would I go about this and do I have to have the same amount of columns for a Union Query. I am just very unfamiliar with a Union Query.
Thanks Pat!
0
 

Author Closing Comment

by:Dustin Stanley
Comment Utility
Ok thanks. I am pretty sure I got it.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now