open recordset not working like i thought

rainman89

I cant find the any key..
Local time
Today, 01:07
Joined
Feb 12, 2007
Messages
3,015
[Resolved] open recordset not working like i thought

Hi all,

Does openrecordset only work for queries that are already created? I thought that this would work
Code:
Set rs = Db.OpenRecordset("select * from tbl_benchskill where ((studentYearID= Forms!frm_aisreportCard!Text47))", dbOpenDynaset)
but it errors out while

Code:
Set rs = Db.OpenRecordset("qry_benchskill", dbOpenDynaset)
doesn't seem to cause any problems.. Any insight?
Thanks
 
Last edited:
ok i solved my own problem using

sql= "select * from etc....

then rs.openrecordset (sql)

Thanks for looking though
 

Users who are viewing this thread

Back
Top Bottom