I can get this query to run if I remove the Join, but once I add the join, I get the following error:
Run-Time error '3135': Syntax error in Join Operation
sourceDB = "C:\sourcedb.accdb"
SQL = "SELECT e1.lid " & _
"FROM (eventlog e1 IN '" & sourceDB & "'" & _
"LEFT JOIN eventlog e2 ON e2.lid = e1.lid)"
Any advice on what I might be doing wrong
as e1andas e2. As far as I know, MS Access requires theasfor table aliases.