Click here to Skip to main content
15,346,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one 2 Input Tables

for ex:
1 Input Table

DN0000001	DN0000010	DN0000001	DN0000013	10	.\Box0001\	Agreement.pdf	Samsung	.\Box0001\Dir001\Text\
DN0000011	DN0000013	DN0000001	DN0000013	3	.\Box0001\	Patent.pdf	Samsung	.\Box0001\Dir001\Text\
DN0000014	DN0000014	DN0000014	DN0000033	1	.\Box0001\	Patent.pdf	Oppo	.\Box0001\Dir001\Text\
DN0000015	DN0000020	DN0000014	DN0000033	6	.\Box0001\	Legal docs.pdf	Oppo	.\Box0001\Dir001\Text\
DN0000021	DN0000032	DN0000014	DN0000033	12	.\Box0002\	Memo.pdf	Oppo	.\Box0002\Dir001\Text\




2nd Input Table

BegDoc	EndDoc	BegAttach	EndAttach	PageCount
DN0000001	DN0000004	DN0000001	DN0000005	4
DN0000005	DN0000005	DN0000001	DN0000005	1
DN0000006	DN0000006	DN0000006	DN0000010	1
DN0000007	DN0000010	DN0000006	DN0000010	4
DN0000011	DN0000013	DN0000011	DN0000015	3
DN0000014	DN0000014	DN0000011	DN0000015	1
DN0000015	DN0000015	DN0000011	DN0000015	1
DN0000016	DN0000017	DN0000016	DN0000017	2
DN0000018	DN0000021	DN0000018	DN0000021	4


But I need Output like below Table

BegDoc	EndDoc	BegAttach	EndAttach	PageCount	Box	File Name	Folder	Text Path
DN0000001	DN0000004	DN0000001	DN0000005	4	.\Box0001\	Agreement.pdf	Samsung	.\Box0001\Dir001\Text\
DN0000005	DN0000005	DN0000001	DN0000005	1	.\Box0001\	Agreement.pdf	Samsung	.\Box0001\Dir001\Text\
DN0000006	DN0000006	DN0000006	DN0000010	1	.\Box0001\	Agreement.pdf	Samsung	.\Box0001\Dir001\Text\
DN0000007	DN0000010	DN0000006	DN0000010	4	.\Box0001\	Agreement.pdf	Samsung	.\Box0001\Dir001\Text\
DN0000011	DN0000013	DN0000011	DN0000015	3	.\Box0001\	Patent.pdf	Samsung	.\Box0001\Dir001\Text\
DN0000014	DN0000014	DN0000011	DN0000015	1	.\Box0001\	Patent.pdf	Oppo	.\Box0001\Dir001\Text\
DN0000015	DN0000015	DN0000011	DN0000015	1	.\Box0001\	Legal docs.pdf	Oppo	.\Box0001\Dir001\Text\
DN0000016	DN0000017	DN0000016	DN0000017	2	.\Box0001\	Legal docs.pdf	Oppo	.\Box0001\Dir001\Text\
DN0000018	DN0000021	DN0000018	DN0000021	4	.\Box0001\; .\Box0002\	Legal docs.pdf; Memo.pdf	Oppo	.\Box0001\Dir001\Text\; .\Box0002\Dir001\Text\




I need to Populate Box, File Name, Folder, Text Path field from 1st table and the Same field in both tables are BegDoc EndDoc

But for the (Box File Name Folder Text Path) 4 fields I need to concatenate vales from the first Input table by matching BegDoc and EndDoc Number
Ex:
.\Box0001\; .\Box0002\	Legal docs.pdf; Memo.pdf	Oppo	.\Box0001\Dir001\Text\; .\Box0002\Dir001\Text\


What I have tried:

I have tried to Update query but didnt got result
Posted
Updated 14-Apr-22 9:33am
v3
Comments
OriginalGriff 11-Apr-22 2:27am
   
This is not a good question - we cannot work out from that little what you are trying to do. We have no idea what suddenly makes the new lines magically appear - we don't know what "rules" you are trying to implement and can;t guess them from a l;imited sample like that.

Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.

Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?

That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!

Use the "Improve question" widget to edit your question and provide better information.
SukirtiShetty 11-Apr-22 4:15am
   
Sir I have modified my question sorry sir
CHill60 11-Apr-22 10:02am
   
You need to share the column names of the 1st input table. Also post the Update query that you tried and tell us what went wrong
Gerry Schmitz 12-Apr-22 10:51am
   
I think you want to do a "join".

https://support.microsoft.com/en-us/office/join-tables-and-queries-3f5838bd-24a0-4832-9bc1-07061a1478f6

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900