Hi All,
I have 2 tables,
Table1:
Code:
Name |
Account |
Name1 |
Account1 |
Name1 |
Account2 |
Name2 |
Account1 |
Name2 |
Account2 |
Name3 |
Account1 |
Name3 |
Account2 |
Table2:
I want to create Table3:
Code:
Name |
Account |
User |
Name1 |
Account1 |
User1 |
Name1 |
Account2 |
User1 |
Name2 |
Account1 |
User2 |
Name2 |
Account2 |
User2 |
Name3 |
Account1 |
User3 |
Name3 |
Account2 |
User3 |
I tried to use:
Code:
SELECT
Name,Account,Dlookup("[User]","Table2","User = '" & table1.[Name] & "'")
FROM table1,Table2
**Name matches User - both are text string
Seems to work but my 60 rows data (based on table1) becomes 200,000+
How can I a make a query that will return the specific row count as table1?
Also if there is a better way to do this as the 60 rows table1 takes 4 to 5 mins to complete and when applied to the actual data which has over 5000 rows, I had to crash access as it is taking forever.