Any idea what parameter would be missing?
I created the query using the QBE grid. When the string is compiled, it looks identical to the sql view of the QBE query that I created.
I would like to see all of the "calls" logged yesterday before 12:00.
If I take out the part with the time, the query runs okay...need to put time parameters though.
Thanks,
Al
I created the query using the QBE grid. When the string is compiled, it looks identical to the sql view of the QBE query that I created.
I would like to see all of the "calls" logged yesterday before 12:00.
If I take out the part with the time, the query runs okay...need to put time parameters though.
Code:
strSQl = "SELECT [call counter].logdate, Format([logtime]," & "hh" & ") AS expr1, Count([call counter].callCount) AS CountOfcallCount FROM [call counter] GROUP BY [call counter].logdate, Format([logtime]," & "hh" & ") HAVING ((([call counter].logdate) = #1/29/2006#) And ((format([logtime]," & "hh" & ")) < 12))"
Thanks,
Al