I have an inspection database that I am having problems with. My main (Inspection) form has a subform (Owner). These forms are based on Inspection and Owner tables. The Owner table has a primary key field called Owner ID. The inspection table has a foreign key called Owner ID. This is set up as a one to many relationship.
On my inspection form, the subform (Owner) is linked to the main form (Inspection) by owner id. When I add a new record and try to enter data into the Owner subform, I receive the following error: You tried to assign the null value to a variable that is not a variant data type. Once I exit from this error message, I can finish entering the data and everything is fine. How do I fix this error or trap it so that it does not show up? Any help would be greatly appreciated.
On my inspection form, the subform (Owner) is linked to the main form (Inspection) by owner id. When I add a new record and try to enter data into the Owner subform, I receive the following error: You tried to assign the null value to a variable that is not a variant data type. Once I exit from this error message, I can finish entering the data and everything is fine. How do I fix this error or trap it so that it does not show up? Any help would be greatly appreciated.