OK, looking at the sample you provided off-line:
The table name is filter_qFiscal, not filter.qFiscal. Note the underline versus the period.
The fields are tbl_code, tbl_Start and tbl_Stop.
Thus, the query SQL is (see below). I've tested this and it works as advertised.
Bob
The table name is filter_qFiscal, not filter.qFiscal. Note the underline versus the period.
The fields are tbl_code, tbl_Start and tbl_Stop.
Thus, the query SQL is (see below). I've tested this and it works as advertised.
Code:
PARAMETERS [Enter TestDate] DateTime;
SELECT
filter_qFiscal.tbl_Code
, filter_qFiscal.tbl_Start
, filter_qFiscal.tbl_Stop
FROM
filter_qFiscal
WHERE
(((filter_qFiscal.tbl_Start)<=[Enter TestDate])
AND
((filter_qFiscal.tbl_Stop)>=[Enter TestDate]));
Bob