J
JonWayn
I am still using JET SQL and I am pretty comfortable with writing SQL
statements but I cant figure out the syntax for writing a delete sql which
includes a join. Is it even allowed?
DoCmd.RunSQL "DELETE T1.* FROM [DelTable] AS T1 INNER JOIN [JoinTable] " _
& "AS T2 ON T2.[Citation2] = T1.[Citation1] WHERE T1.FirstName = 'Joe'"
looks like a beautiful statement to me but it throws an error and just
doesnt work. Can anyone here shed some light on this matter?
Thanks
statements but I cant figure out the syntax for writing a delete sql which
includes a join. Is it even allowed?
DoCmd.RunSQL "DELETE T1.* FROM [DelTable] AS T1 INNER JOIN [JoinTable] " _
& "AS T2 ON T2.[Citation2] = T1.[Citation1] WHERE T1.FirstName = 'Joe'"
looks like a beautiful statement to me but it throws an error and just
doesnt work. Can anyone here shed some light on this matter?
Thanks