Ken Snell... please reply

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top