grizzlyjdw2
Registered User.
- Local time
- Yesterday, 22:56
- Joined
- Feb 26, 2009
- Messages
- 22
ok, basically what i am trying to do is open a recordset based off of a query, here is what i have
Dim db As DAO.Database
Dim rs1 As DAO.Recordset
Set db = CurrentDb()
Set rs1 = db.OpenRecordset("Select * from main where offshore_analyst = Forms![main_form]![offshore_analyst].Value;")
the query i have above is already defined as a seperate query, is there a way to just refference the query name?
like openrecordset ("qry_name")
when i try this it says too few parameters
if not why is the above example giving me an error? im sure im not refferencing the form correctly.
Dim db As DAO.Database
Dim rs1 As DAO.Recordset
Set db = CurrentDb()
Set rs1 = db.OpenRecordset("Select * from main where offshore_analyst = Forms![main_form]![offshore_analyst].Value;")
the query i have above is already defined as a seperate query, is there a way to just refference the query name?
like openrecordset ("qry_name")
when i try this it says too few parameters
if not why is the above example giving me an error? im sure im not refferencing the form correctly.