MadAtMicrosoft
Registered User.
- Local time
- Today, 14:34
- Joined
- Sep 27, 2010
- Messages
- 18
After reading multiple threads here I have built a Form for the user to select and/or enter their parameters that they want used within a Report.
The Form includes 3 fields One a combobox to select the Employee and then 2 text boxes to select BeginDate and EndDate
My select query works well to show ALL employees if that Employee box is left blank when I first open the form. The Report includes all employees.
It also works well if I select an Employee preview and then change to a different selected employee and rerun the Report.
************************************
HOWEVER
If in that combobox the first time I run it I select an employee and preview the report and THEN try to re-preview the report for all employees by blanking out the field by highlighting whatever is in that field and then hitting the delete key and try to get a report of all employees I get the error:
Any way to fix this?
The Form includes 3 fields One a combobox to select the Employee and then 2 text boxes to select BeginDate and EndDate
My select query works well to show ALL employees if that Employee box is left blank when I first open the form. The Report includes all employees.
It also works well if I select an Employee preview and then change to a different selected employee and rerun the Report.
************************************
HOWEVER
If in that combobox the first time I run it I select an employee and preview the report and THEN try to re-preview the report for all employees by blanking out the field by highlighting whatever is in that field and then hitting the delete key and try to get a report of all employees I get the error:
"You tried to assign the Null value to a Variable that is not a Variant data Type"
Why would it be different the first time I open the form and leave that field blank and preview vs. re-previewing with a blank field?
Any way to fix this?