Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

import an access query into a recordset

Status
Not open for further replies.

scottian

Programmer
Jul 3, 2003
955
GB
I have a macro that imports an access table into a recordset. It works great, but id prefer if i could use one of the queries instead. When i set the recordset variable to the name of the query i get an error :-
Microsoft JET Database Engine: Invalid SQL statement; expected 'DELETE','INSERT','PROCEDURE','SELECT' or 'UPDATE'. Can anyone tell me why it wont let me connect to a query

Ambition..........If you dont use it, you wont lose it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top