Solved

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

Posted on 2016-11-28
3
50 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
PatHartman earned 500 total points
ID: 41904937
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
ID: 41904941
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
ID: 41905050
Ok thanks. I am pretty sure I got it.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

737 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