Solved

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

Posted on 2016-11-28
3
54 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 38

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

690 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