Join table with non matching Auto Number

vksjndl

New Member
Joined
May 7, 2012
Messages
11
Hi Team,

Please help!!

Scenario: I have two table (Table1 and Table2) as below.

Table1:
ID Name
2 John
3 Tom
5 Kevin

Table2:
ID1 Code
1 AA
4 BB

I need a result with all the Table1 data and one more column of Code where ID.Table1 is less than ID1.Table2

Expected results:

ID Name Code
2 John AA
3 Tom AA
5 Kevin BB

Thanks in advance.

VJ
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Not quite getting it. How is ID 2, name John assigned code AA? According to Table2, AA is the code for ID 1 and not 2. Can you explain further?
Alex
 
Upvote 0
Hi Alex,

Sure, let me explain you the complete scenario.

I have text file which has data is below format.

Code AA
John
Tom
Code BB
Kevin

then I import the text file in MS Access table with Auto Number and then I create query to seprate code with Autonubers. Now I want those Code next to Name column.

Hope it helps.

Thanks,

VJ
 
Upvote 0
"where ID.Table1 is less than ID1.Table2"


the ID for John in Table1 is 2


the ID1 for AA in Table2 is 1


2 is not less than 1


so how can John be associated with AA ?
 
Upvote 0
Hi James,

You are right, it should be greater than not less than. Please read my second comment, I explaind the complete scenario and desire result.

Thanks for your reply.

VJ
 
Upvote 0

Forum statistics

Threads
1,221,848
Messages
6,162,406
Members
451,762
Latest member
Brainsanquine

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top