MS ACCESS SQL Join Syntax -
i can query run if remove join, once add join, 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 might doing wrong
try changing code following:
sourcedb = "c:\sourcedb.accdb" sql = "select e1.lid " & _ "from [" & sourcedb & "].[eventlog] e1 " & _ "left join eventlog e2 on e2.lid = e1.lid"
Comments
Post a Comment