Question : Add select to recordset

I want to create a Select statement as part of my recordset but I get the run-time error '3146' ODBC--call failed.
StoreNo is a number and date is a date, is there something else I'm missing?

I have Access 2007 as my frontend and SQL 2008 as my backend.
1:
Set rst4 = db.OpenRecordset("SELECT * FROM tblDonations WHERE [StoreNo] = " & txtStoreNo & " And [Date] =  " & txtDate & "", dbOpenDynaset)

Answer : Add select to recordset

Try:
Set rst4 = db.OpenRecordset("SELECT * FROM tblDonations WHERE [StoreNo] = " & txtStoreNo & " And [Date] =  #" & txtDate & "#", dbOpenDynaset)
Random Solutions  
 
programming4us programming4us