S
ScottA
I'm using instructions from a Microsoft knowledge base
article (209645) to set query parameters using a form
interface. My interface has two date fields (start and
end dates), and a combo box that filters by Department.
The KB tells me that it is possible to use the following
statement:
Between Forms!FormName!StartDate And Forms!FormName!
EndDate Or_
Forms!FormName!StartDate Is Null
The query runs fine if I remove the Is Null part of the
statement, or when a start date is provided, however, the
article explicitly describes the Is Null statement, and
tells me that I can use this criteria statement to query
a date field by using Start Date and End Date text boxes
on the query form.... If you omit a start date value on
the form, however, the query returns all records,
regardless of the End Date value.
My query returns no records.
Can anyone provide an explanation/solution?
Thanks!
Scott
article (209645) to set query parameters using a form
interface. My interface has two date fields (start and
end dates), and a combo box that filters by Department.
The KB tells me that it is possible to use the following
statement:
Between Forms!FormName!StartDate And Forms!FormName!
EndDate Or_
Forms!FormName!StartDate Is Null
The query runs fine if I remove the Is Null part of the
statement, or when a start date is provided, however, the
article explicitly describes the Is Null statement, and
tells me that I can use this criteria statement to query
a date field by using Start Date and End Date text boxes
on the query form.... If you omit a start date value on
the form, however, the query returns all records,
regardless of the End Date value.
My query returns no records.
Can anyone provide an explanation/solution?
Thanks!
Scott