Hi,
I'm trying to create a report which when run loads a filter which is passed in through the docmd.openreport command. it works fine if the filter has only one criteria. IE Date Between ## and ## BUT if i enlarge the filter to contain two criterias IE Date Between ## and ## AND Date2 between ## and ## the report only shows the information as if it were combining two querys, one with records from date and one with records from date2.
if i write a query with a where statement using the criteria as above only looking at the dates i want for the fields date and date2 - i GET the records i want. but this is no good since I want the users to be able to enter in any dates.
does anyone know what im doing wrong or if this is a problem in access 97?
cheers
I'm trying to create a report which when run loads a filter which is passed in through the docmd.openreport command. it works fine if the filter has only one criteria. IE Date Between ## and ## BUT if i enlarge the filter to contain two criterias IE Date Between ## and ## AND Date2 between ## and ## the report only shows the information as if it were combining two querys, one with records from date and one with records from date2.
if i write a query with a where statement using the criteria as above only looking at the dates i want for the fields date and date2 - i GET the records i want. but this is no good since I want the users to be able to enter in any dates.
does anyone know what im doing wrong or if this is a problem in access 97?
cheers