This symptom is specific to Access 2000 projects. However this same error may occur whenever you use Visual Basic for Applications (VBA) code in Access.
It is common, for example, to use VBA code to reference controls on a form and to assign the values returned (by the reference) to some other object, such as a variable. If the control on the form contains a Null value, and the code attempts to assign this value to a String variable for example, you receive the error message described in the "Symptoms" section.
Steps to Reproduce the Behavior
- Open the sample database NorthwindCS.adp.
- Open the Suppliers form in Form view.
- On the Edit menu, point to Go To, and then click New Record. Note that you receive the error message mentioned in the "Symptoms" section.