P
Pierre Dumont
Hi,
I'm trying to trap an error with On Error Goto in a form. It's a task
form in Outlook 2000. I always get an syntax error. I don't understand since
it's working fine in VB.
Thanks
Pierre
Code i'm trying...............
Private Sub cmdText_Click()
On Error GoTo cmdTest_Click_Err
If SaveDetails() Then
MsgBox "Details Saved OK", vbInformation
Else
MsgBox "Details have not been saved", vbCritical
End If
Exit Sub
cmdTest_Click_Err:
MsgBox Err.Description & vbCrLf & Err.Number
End Sub
I'm trying to trap an error with On Error Goto in a form. It's a task
form in Outlook 2000. I always get an syntax error. I don't understand since
it's working fine in VB.
Thanks
Pierre
Code i'm trying...............
Private Sub cmdText_Click()
On Error GoTo cmdTest_Click_Err
If SaveDetails() Then
MsgBox "Details Saved OK", vbInformation
Else
MsgBox "Details have not been saved", vbCritical
End If
Exit Sub
cmdTest_Click_Err:
MsgBox Err.Description & vbCrLf & Err.Number
End Sub