F
floyd33 via AccessMonster.com
I have an expense database with a table for all employees and a table for the
expense report details (along with several other supporting tables). The
main form we use has a lookup box for the employee, which when clicked on,
brings up a form showing any/all expense reports that employee may have
completed, in a simplified datasheet form (subform). There is also a command
button in the footer that allows you to view the extended version of that
expense record attached to the row you clicked on from the datasheet view.
In this form, you can just view the expanded form view of the report you
clicked on (more fields visible for a complete report) or you can press
another command button to add a new report, which just brings up a new
expense record in form view for data entry.
A problem arises when you have an employee that has never added an expense
before. You choose their name from the drop down and then click the button
that says "expense report form" and it throws this message "You entered an
expression that has no value.†I am sure this is because there are no other
records associated with this person, but how do I fix it?
Thanks!
expense report details (along with several other supporting tables). The
main form we use has a lookup box for the employee, which when clicked on,
brings up a form showing any/all expense reports that employee may have
completed, in a simplified datasheet form (subform). There is also a command
button in the footer that allows you to view the extended version of that
expense record attached to the row you clicked on from the datasheet view.
In this form, you can just view the expanded form view of the report you
clicked on (more fields visible for a complete report) or you can press
another command button to add a new report, which just brings up a new
expense record in form view for data entry.
A problem arises when you have an employee that has never added an expense
before. You choose their name from the drop down and then click the button
that says "expense report form" and it throws this message "You entered an
expression that has no value.†I am sure this is because there are no other
records associated with this person, but how do I fix it?
Thanks!