T
Tony Williams
I have a report that is based on a query. The user inputs a date range into
a form with this in the query criteria
Between [Forms]![frmdates1]![txtstartdate] And
[forms]![frmdates1]![txtenddate]
The date that the criteria is checking is caled txtmonthlabela. However I
want the query to check also whether there is data in txtmonthlabela as
well. So the query checks if there is data in txtmonthlabela and then only
pulls up records where the value of txtmonthlabela is between the range as
defined above. How do I do this? I assume I will have to put another control
on my prompt form, frmdates1, which the user will need to input the value of
txtmonthlabela but how does the query then check the value is not null and
then filter the records between the range.
Thanks
Tony
a form with this in the query criteria
Between [Forms]![frmdates1]![txtstartdate] And
[forms]![frmdates1]![txtenddate]
The date that the criteria is checking is caled txtmonthlabela. However I
want the query to check also whether there is data in txtmonthlabela as
well. So the query checks if there is data in txtmonthlabela and then only
pulls up records where the value of txtmonthlabela is between the range as
defined above. How do I do this? I assume I will have to put another control
on my prompt form, frmdates1, which the user will need to input the value of
txtmonthlabela but how does the query then check the value is not null and
then filter the records between the range.
Thanks
Tony