I've looked through the archives for posts about this error, but I can't get a good handle on what is causing it in my situation. I have a main form with currently one subform, there will be another subform in the future once I can get this error sorted. The subform is used to create a test record in which entity information and test data are entered. The main form is takes the test information from the subform and conducts a statistical analysis on them.
So here is the problem. When I first select any value on the subform to create a new entity record I get the "you tried to assign the null value to a variable" error. The subform is linked to the main form by Entity ID and Unit ID. Once I select ok on the the message box I am allowed to continue entering the information for the entity and test results. All other data transfer code works fine. The only problem is the error message.
Does anyone have experience with this issue or a solution to this problem?
One other component to this problem that I have just noticed is that when I try to create a new record with the subform opened independently it is trying to create records with ID's that have already been created. For instance it is trying to create ID#12, which is already a current record, rather than creating a new one which would be say ID# 212. Could this be involved in the problem?
So here is the problem. When I first select any value on the subform to create a new entity record I get the "you tried to assign the null value to a variable" error. The subform is linked to the main form by Entity ID and Unit ID. Once I select ok on the the message box I am allowed to continue entering the information for the entity and test results. All other data transfer code works fine. The only problem is the error message.
Does anyone have experience with this issue or a solution to this problem?
One other component to this problem that I have just noticed is that when I try to create a new record with the subform opened independently it is trying to create records with ID's that have already been created. For instance it is trying to create ID#12, which is already a current record, rather than creating a new one which would be say ID# 212. Could this be involved in the problem?