I need help resolving the cause and the fix for an Error Message I get when teh first character is entered in to a text field of a subform.
The error message is: "You tried to assign the Null value to a variable that is not a variant data type."
The Details:
1) I have a form. On the form is a subform with text
fields where text is entered in to a new record.
2) The main and the subform on it are both associated
with the same table.
3) When I click on the "add new record" command button on
the main form, the focus is set to the first text field
on the subform. The text field on the subform now has
the cursor verticle bar on it.
When I press any text character on the keyboard I get
an error message. The error messages is:
"You tried to assign the Null value to a variable that
is not a variant data type."
When I click on the OK button on the error message's
window, the character I pressed on the keyboard,
appears in the text box. I can then enter more
characters with no further error messages. It doesn't
matter what text field I start with on the subform.
I still get the same error message.
I have looked through the Access programming books and
the like and haven't been able to figure out the cause
and the resolution to this problem.
Any body out there that can help me with this problem?
Best Regards,
The error message is: "You tried to assign the Null value to a variable that is not a variant data type."
The Details:
1) I have a form. On the form is a subform with text
fields where text is entered in to a new record.
2) The main and the subform on it are both associated
with the same table.
3) When I click on the "add new record" command button on
the main form, the focus is set to the first text field
on the subform. The text field on the subform now has
the cursor verticle bar on it.
When I press any text character on the keyboard I get
an error message. The error messages is:
"You tried to assign the Null value to a variable that
is not a variant data type."
When I click on the OK button on the error message's
window, the character I pressed on the keyboard,
appears in the text box. I can then enter more
characters with no further error messages. It doesn't
matter what text field I start with on the subform.
I still get the same error message.
I have looked through the Access programming books and
the like and haven't been able to figure out the cause
and the resolution to this problem.
Any body out there that can help me with this problem?
Best Regards,