When I run the following SQL statement in the immediate window. I get the following error:
The SELECT statement includes a reserved word or an argument name that is mispelled or missing, or the punctuation is incorrect.
DoCmd.RunSQL " Select TESTTABLE t, TBL_FieldID f, TBL_Index i WHERE t.[Report ID]=i.[Report ID] AND f.[Field ID] = i.[Field ID]
The SELECT statement includes a reserved word or an argument name that is mispelled or missing, or the punctuation is incorrect.
DoCmd.RunSQL " Select TESTTABLE t, TBL_FieldID f, TBL_Index i WHERE t.[Report ID]=i.[Report ID] AND f.[Field ID] = i.[Field ID]