Any workaround?
Hi Gil365,
I do not work with QueryDefs, but generate all sql-strings dynamically.
In your case, you could pick the SQL-property of the QueryDef, manipulate the string, and write it back. Adding a new table to the sql-string should not be a problem, as you can substitute the current table "Table1" by something like:
Table1 --> (Table1 INNER JOIN Table2 ON Table1.Field1 = Table2.Field2)
This feature is standard build in in all my applications.
Imb.
Edit:
I now realize it is not an additional table, but an additional condition:
sql_string + sql_string & " WHERE " & filtercondtion
Imb.