MS Access 2007 JOIN on Multiple Fields
join, ms-access
Solution
Using the query design window, drag Date from T1 to match Date in T2 and similarly, drag Name from T1 to T2. This will give you an INNER JOIN on bioth name and date. Switch to SQL view to view the SQL.
BTW, both Name and Date are reserved words. Name in particular is a terrible thing to call anything in MS Access, so I hope these are imaginary field (column) names.
Problem
I have a two tables similar to the following: I am attempting to create a query in Access to create a table like this: The crux of course is that the JOIN must match against both the Date and Name fields. I can join the fields from T2 into T1. What is the proper syntax (either in SQL or via the query designer) to join the fields on both Date and Name? My attempts have duplicated the field count.