How To Do Error Handling In Access Vba

[Solved] How To Do Error Handling In Access Vba | Vb - Code Explorer | yomemimo.com
Question : how to do error handling in access vba

Answered by : tim-crooker

1 Sub|Function SomeName()
2 On Error GoTo Err_SomeName ' Initialize error handling.
3 ' Code to do something here.
4 Exit_SomeName: ' Label to resume after error.
5 Exit Sub|Function ' Exit before error handler.
6 Err_SomeName: ' Label to jump to on error.
7 MsgBox Err.Number & Err.Description ' Place error handling here.
8 Resume Exit_SomeName ' Pick up again and quit.
9 End Sub|Function

Source : | Last Update : Sun, 02 Feb 20

Answers related to how to do error handling in access vba

Code Explorer Popular Question For Vb