Combine Records from Multiple Tables or Queries Together Using a Union Query in Microsoft Access

  Рет қаралды 76,463

Computer Learning Zone

Computer Learning Zone

Күн бұрын

In this video, I'm going to show you how to use a Union Query to combine the results from two tables with similar fields, such as customers and employees, into one dataset.
Sara from Bar Harbor, Maine (a Platinum Member) asks: I've got a table for customers and a separate table for employees. Is there any way to join them together in a single query so that I can generate reports like mailing labels in one shot. Right now I have to do everything twice and have two separate reports for everything.
Silver Members and up get access to an Extended Cut of this video. Members will see how to easily edit the records in a Union Query. The results from a Union Query are not updateable, but I will show you how to create a listbox and then edit the selected record with either a popup form or a subform.
MEMBERS VIDEO:
• Union Query MEMBERS ON...
BECOME A MEMBER:
KZbin: / @599cd
or My Site: 599cd.com/THMember
LEARN MORE:
599cd.com/Union
LINKS:
SQL Basics: 599cd.com/SQLBasics
Access Expert 16: 599cd.com/ACX16
Access SQL Seminar: 599cd.com/SQL1
Microsoft's UNION Query Article: tinyurl.com/yhvv9hm3
Intro to VBA: 599cd.com/IntroVBA
AfterUpdate Event: 599cd.com/AfterUpdate
On Double Click Event: 599cd.com/OnDblClick
COURSES:
FREE Access Beginner Level 1: 599cd.com/Free1
$1 Access Level 2: 599cd.com/1Dollar
FREE TEMPLATE DOWNLOADS:
TechHelp Free Templates: 599cd.com/THFree
Blank Template: 599cd.com/Blank
Contact Management: 599cd.com/Contacts
Order Entry & Invoicing: 599cd.com/Invoicing
More Access Templates: 599cd.com/AccessTemplates
ADDITIONAL RESOURCES:
Donate to my Tip Jar: 599cd.com/TipJar
Get on my Mailing List: 599cd.com/YTML
Contact Me: 599cd.com/Contact
TechHelp: 599cd.com/TechHelp
Consulting Help: 599cd.com/DevNet
Twitter: / learningaccess
en.wikipedia.org/wiki/Microso...
products.office.com/en-us/access
microsoft.com/en-us/microsoft...
KEYWORDS:
microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, union query, what is a union query, how do you create a union query, union operation, union queries ms access, union queries in ms access, how to use union queries, combined results, edit union query data, not updateable, union query sort, combine two tables with same fields, edit data in union query, join
QUESTIONS:
Please feel free to post your questions or comments below. Thanks.

Пікірлер: 62
@Sigma_Bharat_Bhakt
@Sigma_Bharat_Bhakt 2 жыл бұрын
these tutorials are really helping keep it up!
@599CD
@599CD 2 жыл бұрын
Glad you like them!
@Shadow.Dragon
@Shadow.Dragon 6 ай бұрын
Richard, thanks for the great video! Your explanation of how to use a Union Query really saved me a lot of VBA work today! 🖖
@599CD
@599CD 6 ай бұрын
Glad to help
@wealth_pivot
@wealth_pivot Жыл бұрын
Thank you Richard for sharing this great tutorial
@599CD
@599CD Жыл бұрын
Welcome
@artistryartistry7239
@artistryartistry7239 2 жыл бұрын
I cannot believe how powerful and how cool this is. I would've thought it was impossible to become addicted to learning Access, but I feel like a kid with a new toy. Richard, you're amazing, and I want to do something to repay all the help/entertainment you've provided with your vids. The way you just created a new column with employee/customer just adding "C" as PersonType is insane. I will be joining your membership. What is the preferred path to do that, joining here or your website?
@599CD
@599CD 2 жыл бұрын
Thanks. I appreciate the compliments. Whatever is convenient for you. If you join on KZbin then you can watch all of the videos (including Extended Cuts) on KZbin. Some people prefer that. If you sign up on my web site, you have to watch the Extended Cuts on my web site. The major benefit to signing up on my site directly is that you can get 20% off if you sign up for the year.
@susuksacat2313
@susuksacat2313 Жыл бұрын
Excellent video. Thank you very much.
@599CD
@599CD Жыл бұрын
Welcome
@ezabala
@ezabala 2 жыл бұрын
Wow! This is useful!
@599CD
@599CD 2 жыл бұрын
Glad you think so!
@M4rshm4llowTG
@M4rshm4llowTG 3 ай бұрын
thank you! this tutorial helped
@599CD
@599CD 3 ай бұрын
Glad to hear that!
@benmoore8547
@benmoore8547 Жыл бұрын
brilliant video!!!
@599CD
@599CD Жыл бұрын
Thank you!
@KhalidAfridi1
@KhalidAfridi1 3 ай бұрын
Thank you
@599CD
@599CD 3 ай бұрын
You're welcome
@sophanithphon
@sophanithphon Ай бұрын
I have got one question. Do all the fields that are used to create the union query have to have the same field names?
@PAKITWORLD
@PAKITWORLD 11 ай бұрын
Respected sir i have a issue on form size. I design form according my scree size but in different screen size form not resize according screen size....please guide me in simple way
@jimyeske8498
@jimyeske8498 Жыл бұрын
Hi Richard, Great video, very helpful! After creating the Union query, with a jumbled column of ID numbers, is there a way to generate a Report that has an AutoNumber field? Thanks in advance!
@jimyeske8498
@jimyeske8498 Жыл бұрын
Figured out the report numbering issue! 1. Create unbound text box (Top-Left) - Details section 2. Control Source = 1 3. Running Sum = Over Group
@599CD
@599CD Жыл бұрын
Sweet
@ahmadzafar5051
@ahmadzafar5051 2 жыл бұрын
Good video
@599CD
@599CD 2 жыл бұрын
Thanks
2 жыл бұрын
"but first a word from my sponsor.. that happens to be me!" :D
@599CD
@599CD 2 жыл бұрын
Ha ha
@leomaredcampos7129
@leomaredcampos7129 Жыл бұрын
If I use MySQL as my database in MS Access. is the storage in tables increase? and is the query can run more than 2 GB when I have MySQL table?
@599CD
@599CD Жыл бұрын
599cd.com/QQ
@bechiuwhotechnologies3288
@bechiuwhotechnologies3288 Жыл бұрын
How can create a form that can save information I input manually into 2 table and restrict access to select fields
@599CD
@599CD Жыл бұрын
I get a ton of questions every day, and I don't have time to answer them all here on KZbin. Feel free to submit your question on my website at: 599cd.com/AskYT
@SearchingforScraps
@SearchingforScraps Жыл бұрын
Let's say you want to clean it after the UNION. IS there a way to save it as a table and make it apart of the DB? That way you clean it all at once and do not touch the raw data?
@599CD
@599CD Жыл бұрын
599cd.com/ask
@eslamessam2844
@eslamessam2844 2 жыл бұрын
Hello, how can I make records in a union query editable ?
@599CD
@599CD 2 жыл бұрын
That's covered in the Extended Cut.
@eslamessam2844
@eslamessam2844 2 жыл бұрын
@@599CD Sorry, what is the extended cut ?
@ramprakashmaurya3236
@ramprakashmaurya3236 Жыл бұрын
Super expression
@599CD
@599CD Жыл бұрын
Thanks
@kennethjeffuy
@kennethjeffuy 2 жыл бұрын
Hi Richard. Another excellent video. I gotta question regarding union queries. Can union queries form relationships with other queries or tables to form another query? Usually I can't seem to have it working and if it does, it takes so much time!
@599CD
@599CD 2 жыл бұрын
Yes, you technically CAN create relationships with Union queries, although I don't see why you'd want to.
@beq328
@beq328 2 жыл бұрын
When I use the Union query, it always gifs a conflict. Two tabels will not give the correct values for a yes/no selection
@599CD
@599CD 2 жыл бұрын
Sounds like something isn't set up correctly. I cover Union queries in more detail here: 599cd.com/site/courselist/access2013/expert/x16
@599CD
@599CD 2 жыл бұрын
And here: 599cd.com/SQL2
@beq328
@beq328 2 жыл бұрын
I found what I did wrong. Thx for the support. Your lessons are super, I already learned a lot
@mostafaeltarabishy8868
@mostafaeltarabishy8868 2 жыл бұрын
how to make search bottom to search in multiple tables
@599CD
@599CD 2 жыл бұрын
Union them together.
@thomaswesonga3868
@thomaswesonga3868 Жыл бұрын
Waw goog
@thomaswesonga3868
@thomaswesonga3868 Жыл бұрын
Good
@HankMegens
@HankMegens Жыл бұрын
how to combine people with the same address from one table?
@599CD
@599CD Жыл бұрын
That's a tricky one. So you're saying you have multiple customers that have the EXACT same address, and you want to put them together... how and why?
@HankMegens
@HankMegens Жыл бұрын
@@599CD it is my personal addresses. I have put all the members as individual records, so i can contact them individual. I also like to send them stuff as a family.
@gidisalleh3954
@gidisalleh3954 8 ай бұрын
Sir, if you willing to share with us ..as simple as possible to combine 2 access files with one unique ID into one file. I've found lots of example but too confusing and very long explanation. My request is simple, I have two sets of access data of two classes. I wanted to make them into one data in access form. Thanks if you can show me how to solve this problem.
@599CD
@599CD 8 ай бұрын
599cd.com/ask
@markies_gaming
@markies_gaming 7 ай бұрын
Sir in this method how to convert TIME in SHORT TIME..
@599CD
@599CD 7 ай бұрын
I don't understand
@markies_gaming
@markies_gaming 7 ай бұрын
@@599CD how to put a date parameter on Union query.. and how to format date/time into SHORT TIME using that Method.
@ahmadzafar5051
@ahmadzafar5051 2 жыл бұрын
I am learning. One question is Many columns in the query If all the columns in the query are filled then it shows. What should be done so that the query in which it is not written is not a show۔sorry my English is weak
@599CD
@599CD 2 жыл бұрын
Sorry, I don't understand.
@PAKITWORLD
@PAKITWORLD 2 жыл бұрын
Sir i have two table in my database first is purchase 2 is sale. Now i want to make a query of bank transactions from these tables.. For example recieved transaction from sale table and Paid transactions from purchase table. Now i want to combine in one query from two tables that show received transactions and paid transaction and running balance...pleade help me
@599CD
@599CD Жыл бұрын
That's what the video shows... merging records from two tables.
@PAKITWORLD
@PAKITWORLD Жыл бұрын
@@599CD thanks my sir
How to Make Multiple Relationship Joins to the Same Table in Microsoft Access
22:01
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 53 МЛН
Этот Пёс Кое-Что Наделал 😳
00:31
Глеб Рандалайнен
Рет қаралды 4 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 1,3 МЛН
MS Access - Queries Part 1: Basic queries
19:10
Mr Long Education - IT & CAT
Рет қаралды 114 М.
Access: Designing a Simple Query
5:02
LearnFree
Рет қаралды 1,2 МЛН
Advanced Microsoft Access 2013 Tutorial | Generating A Union Query In Access
6:08
O'Reilly - Video Training
Рет қаралды 14 М.
MS Access 2016 - Join Data from Different Tables in Query
6:35
TutorialsPoint
Рет қаралды 221 М.
Microsoft Access - Update Multiple Tables from a Single Form
16:27
Design and Deploy
Рет қаралды 120 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 53 МЛН