B
Brian Hoops
I have some variables calculated in my VB code that I need to incorporate
into the search criteria of a query. How exactly do I go about doing this?
I did find something about using a VB function in your criteria (ie.
blah() ), and that worked fine for one field (string->text), however I'm
stuck while trying to create
varDate = ">=#" & Format(rptBegDate, "Short Date") & "# and <=#" &
Format(rptEndDate, "Short Date") & "#"
The query says "Data type mismatch in criteria expression."
Any direction would be appreciated!
-Brian
into the search criteria of a query. How exactly do I go about doing this?
I did find something about using a VB function in your criteria (ie.
blah() ), and that worked fine for one field (string->text), however I'm
stuck while trying to create
varDate = ">=#" & Format(rptBegDate, "Short Date") & "# and <=#" &
Format(rptEndDate, "Short Date") & "#"
The query says "Data type mismatch in criteria expression."
Any direction would be appreciated!
-Brian