Access is not very rigorous about how it passes error messages. If there is ANY code on the form where Access does not understand any word or thing you typed, it will through this error, even though the On Load event was not the source of the bad code.
So if you had a button on the form, wrote some code for it, then deleted the button, you have to delete the code for its events as well, or you will get a similar error the first time ANY event fires on the form.
Access checks ALL the code associated with an object when ANY code is run on the object.
mmcdonal
|