I have an employee input form which contains an unbound Employee Find text box. It allows users to find an employee and show the employee details on the subform. EmpID (an autonumber) is the master/child link field.
It works fine except that we I add a new record, it gives me an error "You tried to assign the Null value to a variable that is not a variant data type." This problem does not exist if I add new record independently on the subform.
Does anyone has any good idea of resolving this issue. I don't really want to open a separate form for new record input.
A sample database is enclosed to demonstrate the problem. For simplicity, I have removed some of the fields and event procedures on the forms.
Thanks
It works fine except that we I add a new record, it gives me an error "You tried to assign the Null value to a variable that is not a variant data type." This problem does not exist if I add new record independently on the subform.
Does anyone has any good idea of resolving this issue. I don't really want to open a separate form for new record input.
A sample database is enclosed to demonstrate the problem. For simplicity, I have removed some of the fields and event procedures on the forms.
Thanks