How to merge/join/combine two datasets into one with Microsoft Access

  Рет қаралды 44,929

Too Long; Didn't Watch Tutorials

Too Long; Didn't Watch Tutorials

Күн бұрын

Пікірлер: 27
@Jojosmith342
@Jojosmith342 Жыл бұрын
thumbs up for the great tutorial. Subscribed. Thanks a lot for teaching. Can we do this with multiple tables where the table with the missing data will be filled with the data that the other table has? thanks
@TLDW_Tutorials
@TLDW_Tutorials Жыл бұрын
Thank you so much! So you would merge two tables like in this video by a common ID or identifier. You would then want to make an update query. So if table 1 has a field called “fullname” that is missing some data and table 2 has the missing fullname values you want to add to table 1, under the Update To: part in the query builder you would add “table 2.fullname” and hit run. I would always backup your data before doing an update query though in case something goes wrong. This is a very good question. I’ll try and see if I can make a video about this for next week.
@Blackfathe
@Blackfathe Жыл бұрын
Pls i need help my form details are not displaying when viewing. After queries in ms access I need help.thanks
@TLDW_Tutorials
@TLDW_Tutorials Жыл бұрын
I responded to your other comment. Hopefully this has been resolved!
@dudein00
@dudein00 Жыл бұрын
Super Helpful! However, after you created your "Query 1" how can I use that new data on Excell?
@TLDW_Tutorials
@TLDW_Tutorials Жыл бұрын
Good question. There's a 2 ways to do this that come to mind, #1 being the easiest: #1: In your MS Access database, just find "Query 1" on the navigation pane on the left side of the screen, highlight -> right click -> export -> Excel. Then you can export Query 1's data into an Excel file. #2: You can also import a MS Access query's data into Excel. In Excel, go to Data -> Get Data -> From Database -> From Microsoft Access Database -> Select your MS Access Database File -> Select "Query 1" -> Load. I hope this helps! Thanks for watching the video!
@felixwu5151
@felixwu5151 9 ай бұрын
@@TLDW_Tutorialsfirst option rows exceeds excel limit. Second option excel don’t have option to import query only table
@TLDW_Tutorials
@TLDW_Tutorials 9 ай бұрын
@@felixwu5151 Excel maxes out at a little over 1,000,000 rows. How big is your dataset? You can also use Power Query in Excel to split into multiple tabs if the dataset is too big to open in Excel natively.
@satyabanukil779
@satyabanukil779 10 ай бұрын
There are two expression columns in my query which are numeric fields. How to merge both the columns in order to sort.
@TLDW_Tutorials
@TLDW_Tutorials 10 ай бұрын
Just to be clear, you mean "merge" as in merging the datasets, not merge values together (aka concatenating), right? If so, you just merge the datasets together, and then in your query in the row that says "sort" just select "Ascending" or "Descending". If you mean concatenating or combining the values, you would create a new variable in your query window - something like -> MergedField: [Field1] + [Field2] and then similarly, under "Sort" select how you want to sort it.
@satyabanukil779
@satyabanukil779 10 ай бұрын
@@TLDW_Tutorials First of all, thnx for your prompt response Sir. Now let me explain my requirements in details. I have a query based on a single table. For example in the query there are two numeric "Expression" columns. , which are scores. I have named First Expression as Tot (For Group A) and Tot1(For Group B) for the second one. But when I run the query it shows two datasets for both two separate groups and that is obvious as per requirement. But if I want to bring both the groups together for ranking amongst all the candidates (both A abd B), I need to bring all of them in a combined list consisting of both A and B and then only I can rank them (or sort ascending or descending, as the case may be). Hence I wanted to know if it is possible in anyway in MS Access, then Pl make a video tutorial for which beginners like us shall be grateful l. Regards
@TLDW_Tutorials
@TLDW_Tutorials 10 ай бұрын
​@@satyabanukil779 OK, I think I understand a little better here. The easiest thing I can think of without a lot of code is making a UNION query with these two values and putting them into one. I have a video on UNION queries if it's helpful (look in the MS Access playlist), but you might not need to look at it for this. Alright, open your query in SQL view and try this (make sure to replace "Anotherfieldhereifneeded" with any other fields you want to add to it and make sure to replace "YourTable" with the actual name of your field). I had this ordered in ascending order (see ORDER BY Score ASC;) but if you want to change it to descending, change ASC to DESC. Let me know if it works or if you're still having trouble. SELECT Anotherfieldhereifneeded, Tot AS Score, 'Group A' AS Group FROM YourTable UNION SELECT Anotherfieldhereifneeded, Tot1 AS Score, 'Group B' AS Group FROM YourTable ORDER BY Score ASC;
@satyabanukil779
@satyabanukil779 10 ай бұрын
@@TLDW_Tutorials Thanx a lot Sir. Definitely shall work on it and give you a feedback. Regards
@satyabanukil779
@satyabanukil779 9 ай бұрын
@@TLDW_Tutorials Thank you Sir. I tried with Union Queries. But it is returning exactly the the field name which I wrote not the data under it. For example, My code is " SELECT Query1.T1TT AS TeamTotal, 'P1' AS TeamId, "TEAM1" AS Team FROM Query1 GROUP BY Query1.T1TT UNION ALL SELECT Query2.T2TT AS TeamTotal, 'P2' AS TeamId,"TEAM2" AS Team FROM Query2 GROUP BY Query2.T2TT" and so on. But when I execute the code the dataset shows just "TEAM1", "TEAM2" and not the data under these column. So I may be wrong with my syntax since it is a text field. If you get time, kindly help. Regards.
@rocknroll4764
@rocknroll4764 Жыл бұрын
Hi, how is it possible to grant access for multiple users to access same DB knowing its located on a shared drive? Thank you !
@TLDW_Tutorials
@TLDW_Tutorials Жыл бұрын
Great question. So you are going to need to split your database and make front end databases for everyone that has access on your shared drive. I have a video here that shows you how to do it: kzbin.info/www/bejne/pZ3aaIN8ja2YhaMsi=aTLZCCg4wszA1aZE
@kajfjd
@kajfjd 11 ай бұрын
Sir it's asking for destination field
@TLDW_Tutorials
@TLDW_Tutorials 11 ай бұрын
In Microsoft Access, when you're trying to merge datasets or tables using the "Append Query" or "Union Query" features, it will ask you to specify a destination table where the results of the merge will be stored. You will need to select an existing table in your database or provide a new name for a table to be created to store the merged data. This destination table is where the combined data will be saved after the merge operation.
@gaborv.6502
@gaborv.6502 7 ай бұрын
dont work. error message about OLE object
@TLDW_Tutorials
@TLDW_Tutorials 7 ай бұрын
One of the most common reasons this happens is because of incompatible data types. If one of the fields in the join is an OLE object, you can't use it in a join directly because OLE fields contain binary data that represent objects such as Excel spreadsheets, Word documents, images, etc., rather than plain text or numeric values. If this your situation try to join text, numbers, or dates.
@gaborv.6502
@gaborv.6502 6 ай бұрын
@@TLDW_Tutorials thx
Creating a UNION Query in Microsoft Access - Combine multiple datasets into one view
4:13
Too Long; Didn't Watch Tutorials
Рет қаралды 13 М.
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,3 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 9 МЛН
Excel - Merge Data from Multiple Sheets Based on Key Column
9:05
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 610 М.
How to Make Multiple Relationship Joins to the Same Table in Microsoft Access
22:01
Microsoft Access How to Use the Append Query
4:32
jargonfreehelp
Рет қаралды 179 М.
Microsoft Access A to Z: Designing Table Relationships
10:40
Lisa Friedrichsen
Рет қаралды 72 М.
How to Unsplit a Database and Merge Tables in Microsoft Access for Solo Use
18:08
Как создать таблицы в Microsoft Access за 8 минут
9:14
Уроки по Microsoft Access
Рет қаралды 1,1 МЛН
MS Access - How to split your database and allow multiple users to enter data at the same time
5:05
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,3 МЛН