omccartney
Registered User.
- Local time
- Today, 07:24
- Joined
- Jun 4, 2007
- Messages
- 14
I have some code that worked in 2000 but does not work in 2003/2007. It is the On Error Statement. When I run the code, it seems to ignore my On Error Statement and opens a VB Dialogue box that shows my error "Microsoft Office Assistant can't find the object 'SynnexMultiContact5'. I know why the data I am getting the error, but why is my error routine not being called? Below is the code.
Private Sub subImportData2()
On Error GoTo BooBoo
DoEvents
' Reset data table -------------------------------------------------------
DoCmd.DeleteObject acTable, "SynnexMultiContacts5"
Exit Sub
BooBoo:
MsgBox "Error: " & Err.Number & "-" & Err.Description
Err.Clear
Exit Sub
End Sub
Private Sub subImportData2()
On Error GoTo BooBoo
DoEvents
' Reset data table -------------------------------------------------------
DoCmd.DeleteObject acTable, "SynnexMultiContacts5"
Exit Sub
BooBoo:
MsgBox "Error: " & Err.Number & "-" & Err.Description
Err.Clear
Exit Sub
End Sub