B
BobC
I have a query that I need to pull the needs for a client for a specific date:
strSQL = "Select * From Needs " & _
"WHERE (((Needs.client_id)= " & dblClient_ID & ") And
((Needs.due_date)= #" & dtCalc_Date & "#)) ;"
The query is pulling all records for the client and seemingly ignoring the
date parameter. The date is in mm/dd/yyyy format.
This is what is visible in the object viewer for strSQL:
Select * From Needs WHERE (((Needs.client_id)= 2) And ((Needs.due_date)=
#2/1/2009#));
strSQL = "Select * From Needs " & _
"WHERE (((Needs.client_id)= " & dblClient_ID & ") And
((Needs.due_date)= #" & dtCalc_Date & "#)) ;"
The query is pulling all records for the client and seemingly ignoring the
date parameter. The date is in mm/dd/yyyy format.
This is what is visible in the object viewer for strSQL:
Select * From Needs WHERE (((Needs.client_id)= 2) And ((Needs.due_date)=
#2/1/2009#));