N
none
How do I write an On Error of an On Error? For example, if an error
occurs when trying to open a linked table, I would like to open up the
linked table manager for the user to link the tables properly.
However, if that is not installed, I would like to give the user a
error message that I will write. At the moment, my code which errs
out is as follows:
========================
Private Sub Form_Current()
' Checks to see if all table is there
On Error GoTo TableMgr
If (DCount("*", "qReport") > 0) Then
MsgBox "This should not be 0.", vbOKOnly, "Not 0"
End If
Exit Sub
TableMgr:
MsgBox "The Linked Table Manager will open.", vbOKOnly, "Table
Manager"
Application.Run ("acwztool.att_Entry")
On Error Resume Next 'GoTo NeedToInstallLinkedTableManager
NeedToInstallLinkedTableManager:
MsgBox "The Linked Table Manager needs to be installed.",
vbOKOnly, "The Linked Table Manager add-on needs to be installed."
End Sub
========================
Thank You!
occurs when trying to open a linked table, I would like to open up the
linked table manager for the user to link the tables properly.
However, if that is not installed, I would like to give the user a
error message that I will write. At the moment, my code which errs
out is as follows:
========================
Private Sub Form_Current()
' Checks to see if all table is there
On Error GoTo TableMgr
If (DCount("*", "qReport") > 0) Then
MsgBox "This should not be 0.", vbOKOnly, "Not 0"
End If
Exit Sub
TableMgr:
MsgBox "The Linked Table Manager will open.", vbOKOnly, "Table
Manager"
Application.Run ("acwztool.att_Entry")
On Error Resume Next 'GoTo NeedToInstallLinkedTableManager
NeedToInstallLinkedTableManager:
MsgBox "The Linked Table Manager needs to be installed.",
vbOKOnly, "The Linked Table Manager add-on needs to be installed."
End Sub
========================
Thank You!