The following events are used for error handling and synchronizing data on forms or reports.
Event | Event property | It occurs |
---|---|---|
Error | OnError (forms, reports) | When a run-time error is produced in Microsoft Access while you are in the form or report. This includes Microsoft Jet Database Engine errors, but not run-time errors in Visual Basic. (Since macros can't determine what error has occurred, you normally use Visual Basic event procedures with this event.) |
Timer | OnTimer (forms) | When a specified time interval passes, as specified by the TimerInterval property of the form. You can use the Timer event to keep data synchronized in a multiuser environment by requerying or refreshing data at specified intervals. |