Thanks for your help. I had a function in the OnCurrent event that referenced a data field that had not been filled in yet when a new record was created, giving the null error.
For future reference though, the error message box did not have the usual End-Debug options, only an OK button, so...