I just finished eight hours of work on my database and I've got a problem.
I have a report based on a table with a date field and quite a few other fields. The report produces averages on all the records in the table just fine.
In order to allow my users to select a date or date range for the records they desire, I added two parameter queries that use dates. The queries prompt the user to either "Enter Date:" or "Enter Start Date:" and "Enter End Date:".
It works fine except when you enter a single date for a field that has one or more null values. However, if you query for dates that include both records with and without null values, it returns the correct calculations.
Why is it doing this? How can I correct it?
Thanks
I have a report based on a table with a date field and quite a few other fields. The report produces averages on all the records in the table just fine.
In order to allow my users to select a date or date range for the records they desire, I added two parameter queries that use dates. The queries prompt the user to either "Enter Date:" or "Enter Start Date:" and "Enter End Date:".
It works fine except when you enter a single date for a field that has one or more null values. However, if you query for dates that include both records with and without null values, it returns the correct calculations.
Why is it doing this? How can I correct it?
Thanks