G
geebee
hi,
I have the following in my code/VBA:
Dim strSQL As String
....rowsource = "SELECT DISTINCT tbl_test.status, count(test.tester) AS
countoftester FROM tbl_test " & strSQL3 & " GROUP BY tbl_test.status ORDER BY
tbl_test.status
I would like to add a date criteria to the above SQL, but I am not quite
sure of the syntax. I think it would be something like the following:
....rowsource = "SELECT DISTINCT tbl_test.status, count(test.tester) AS
countoftester FROM tbl_test " & strSQL3 & " AND [popenterdt] = "#" &
Date()-2 & "#" GROUP BY tbl_test.status ORDER BY tbl_test.status
but I am having no luck so far.
How could I achieve this?
thanks in advance,
-geebee
I have the following in my code/VBA:
Dim strSQL As String
....rowsource = "SELECT DISTINCT tbl_test.status, count(test.tester) AS
countoftester FROM tbl_test " & strSQL3 & " GROUP BY tbl_test.status ORDER BY
tbl_test.status
I would like to add a date criteria to the above SQL, but I am not quite
sure of the syntax. I think it would be something like the following:
....rowsource = "SELECT DISTINCT tbl_test.status, count(test.tester) AS
countoftester FROM tbl_test " & strSQL3 & " AND [popenterdt] = "#" &
Date()-2 & "#" GROUP BY tbl_test.status ORDER BY tbl_test.status
but I am having no luck so far.
How could I achieve this?
thanks in advance,
-geebee