prabha_friend
Prabhakaran Karuppaih
- Local time
- Today, 22:28
- Joined
- Mar 22, 2009
- Messages
- 1,034
I am hearing the question you are asking. "Why do I need it?"
I am having more than 100 forms in my application. But the way the form reacts for some errors is mostly the same Thus, no different procedures.
Private Sub Form_Error(DataErr As Integer, Response As Integer)
If DataErr = 3022 Then MsgBox "Duplicate Value"
Response = acDataErrContinue
End Sub
I pasted the above code to all the forms manually previous time(costed me 2 hours). Now they also wants to insert a single code which the undos the last action in it. I am not certain what all changes they are gonna to tell in this error trapping. It's not possible to add this event procedure programmatically to all the forms?
I am having more than 100 forms in my application. But the way the form reacts for some errors is mostly the same Thus, no different procedures.
Private Sub Form_Error(DataErr As Integer, Response As Integer)
If DataErr = 3022 Then MsgBox "Duplicate Value"
Response = acDataErrContinue
End Sub
I pasted the above code to all the forms manually previous time(costed me 2 hours). Now they also wants to insert a single code which the undos the last action in it. I am not certain what all changes they are gonna to tell in this error trapping. It's not possible to add this event procedure programmatically to all the forms?