T
Tom
I exectue an OnError function on a FORM. However, this
function is only execute when I click "Close Window".
Instead, I'd like to click on a command button (let's
call it "Save Record") and execute the FORM's OnError via
the SaveRecord function.
In a previous thread, I was suggested to use the call
function. However, line of code appears red in the
SaveRecord function.
Here's what I have:
Private Sub Form_Error(DataErr As Integer, Response As
Integer)
.... code with personalized error message
End Sub
Private Sub SaveRecord_Click()
Call Form_Error(DataErr As Integer, Response As Integer)
End Sub
Again, the Call Form_Error line appears red in my
SaveRecord Function. What am I doing wrong?
Tom
function is only execute when I click "Close Window".
Instead, I'd like to click on a command button (let's
call it "Save Record") and execute the FORM's OnError via
the SaveRecord function.
In a previous thread, I was suggested to use the call
function. However, line of code appears red in the
SaveRecord function.
Here's what I have:
Private Sub Form_Error(DataErr As Integer, Response As
Integer)
.... code with personalized error message
End Sub
Private Sub SaveRecord_Click()
Call Form_Error(DataErr As Integer, Response As Integer)
End Sub
Again, the Call Form_Error line appears red in my
SaveRecord Function. What am I doing wrong?
Tom