B
Brian
I have the following piece of code trying to pass 3
parameters to a query but get the error message 'Object
Variable or With Block variable not set' on the set qdf.
Any ideas on what the problem is?
Dim MyDb As Database
Dim qdf As DAO.QueryDef
Dim prm As DAO.Parameter
Dim rs As DAO.Recordset
Set MyDb = CurrentDb
Set qdf = db.QueryDefs("QueryAv")
prn.Value = Eval(Forms![SINGLE BOOKING AVAILABILITY]!
BookingDate)
prn.Value = Forms![SINGLE BOOKING AVAILABILITY]!Combo8
prn.Value = Forms![SINGLE BOOKING AVAILABILITY]!Combo10
Also can I assign the parameters in this way?
Thanks in advance.
parameters to a query but get the error message 'Object
Variable or With Block variable not set' on the set qdf.
Any ideas on what the problem is?
Dim MyDb As Database
Dim qdf As DAO.QueryDef
Dim prm As DAO.Parameter
Dim rs As DAO.Recordset
Set MyDb = CurrentDb
Set qdf = db.QueryDefs("QueryAv")
prn.Value = Eval(Forms![SINGLE BOOKING AVAILABILITY]!
BookingDate)
prn.Value = Forms![SINGLE BOOKING AVAILABILITY]!Combo8
prn.Value = Forms![SINGLE BOOKING AVAILABILITY]!Combo10
Also can I assign the parameters in this way?
Thanks in advance.