T
Tom
Ken:
Could you please provide me more info on the thread
("OnError for Textbox").
I was mistaken when saying "Textbox"... it should have
been "Command Button".
Anyhow, I create the OnClick event for a Command button:
Private Sub SaveRecord_Click()
Call Form_Error(DataErr As Integer, Response As Integer)
End Sub
However, the line of code appears "red" in the VBA window.
Someone else now suggested that I need to supply 2
arguments.
Hence, I changed the function to
Private Sub SaveRecord_Click()
Call Form_Error(3022, acDataErrContinue))
End Sub
Unfortunately, this now brings up the error messages box
any time... regardless of having or not having a real
error.
Please, could you provide me more insights into this?
Thanks!
Tom
Could you please provide me more info on the thread
("OnError for Textbox").
I was mistaken when saying "Textbox"... it should have
been "Command Button".
Anyhow, I create the OnClick event for a Command button:
Private Sub SaveRecord_Click()
Call Form_Error(DataErr As Integer, Response As Integer)
End Sub
However, the line of code appears "red" in the VBA window.
Someone else now suggested that I need to supply 2
arguments.
Hence, I changed the function to
Private Sub SaveRecord_Click()
Call Form_Error(3022, acDataErrContinue))
End Sub
Unfortunately, this now brings up the error messages box
any time... regardless of having or not having a real
error.
Please, could you provide me more insights into this?
Thanks!
Tom