To eliminate the error in the display of date in the header, you would need to reference the date from a source which is not the query. The reason you get an error is simply that when the query returns no records, the record (& thus the date field in the query) doesn'y exist. Place the dates in (?hidden?) text boxes on a/the form which you launch the reprt form. Use these as the source for the report heder dates.
The second one is almost the same. You should add a command to a/the form which is used to launch the report(s). ALWAYS require the user to 'click' this command to get the report - however when it is clicked, do any validation checks necessary (such as setting the end date to the current date if the end date text box is empty (or has anything which is no of date type) before opening the report.
I know it 'looks like' a lot of effort, however the reports (output) of your app is one of the primary interfaces users (and evaluators) see. It is important that this ALWAYS looks professional. When using Ms. Access, I always set up a seperate reporting section (usually a seperate form with a tab control) which presents the user with a report selection screen. the options (parameter selections) appropiate to the selected report and other selections as appropiate. The parameter selections usually have certain default selections set up, which may be changed by the user, however the more important aspect is that all parameters are 'validated' before launching the report.
MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over