T
Tim Brown
Hi,
I'm trying to restrict a query through a date range.
The query, which has against a date field the
criteria "Between #date# and #date#", works fine when date
is a specified value (that is, specified within the query).
BUT, when date is a reference to a control on a Form, it
always returns no records.
Criteria I'm using is: "Between [Forms]![Main Menu]!
[dFrom] And [Forms]![Main Menu]![dTo]"
This always returns zero records. Is this the correct way
to refer to a date on a form, or is there another way to
do it?
Thanks,
Tim
I'm trying to restrict a query through a date range.
The query, which has against a date field the
criteria "Between #date# and #date#", works fine when date
is a specified value (that is, specified within the query).
BUT, when date is a reference to a control on a Form, it
always returns no records.
Criteria I'm using is: "Between [Forms]![Main Menu]!
[dFrom] And [Forms]![Main Menu]![dTo]"
This always returns zero records. Is this the correct way
to refer to a date on a form, or is there another way to
do it?
Thanks,
Tim