View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Kletcho Kletcho is offline
external usenet poster
 
Posts: 36
Default How to open Access recordset via Query in Excel VBA???

Try it without all the extras (also recordsets don't work with action
queries):

Set rstIn = db.OpenRecordset("SortPPX")

or put the SQL directly in the openrecordset statement:

Set rstIn = db.OpenRecordset("Select SuzieQs from Hostess Where Ding
Dongs = 'Yummy!'")