Hi
I am trying to modifiy my SQL to go from only combining two tables to combining three or more. My code for two tables, which worked great, was:
Now that I am using three or more tables, I believe I need to switch to a FULL OUTER JOIN. Below is what I think it should be, but the error that comes up says my syntax is incorrect in the WHERE clause:Code:CurrentDb.QueryDefs("qry_Fields_Used_By_Innovient").SQL = "SELECT " & strFields & "INTO tbl_All_Fields_For_Innovient FROM " & strSourceTables & " WHERE " & strSourceTablesLinkFields & ";"
Any suggestions?Code:CurrentDb.QueryDefs("qry_Fields_Used_By_Innovient").SQL = "SELECT " & strFields & " FROM " & strSourceTables & " FULL OUTER JOIN tbl_All_Fields_For_Innovient ON " & strSourceTablesLinkFields & ";"
Thanks
Is your code running too slowly?
Does your workbook or database have a bunch of duplicate pieces of data?
Have a look at this article to learn the best ways to set up your projects.
It will save both time and effort in the long run!
Dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks