N
NP
Generally there are certian situation when the code is
perfect but due to some reason like user not selecting the
proper criteria or option on Form, the code show error and
show the dailog to Debug or end or help etc.
To avoid the dailog which appears, the programmer writes
Error handling Code. As I am not very good in VB coding, I
tried at some places like below, just before End Sub line:
On Error Exit
I also tried : On Error MsgBox "Not Correct Choice"
But nothing worked. My requirement is a small peice of
code, that on error, it will just cancel the event, so
that it will not display any error dailog box etc. , and
this code I will put where ever it may be necessary just
above the End Sub Line
Can any please advise me
perfect but due to some reason like user not selecting the
proper criteria or option on Form, the code show error and
show the dailog to Debug or end or help etc.
To avoid the dailog which appears, the programmer writes
Error handling Code. As I am not very good in VB coding, I
tried at some places like below, just before End Sub line:
On Error Exit
I also tried : On Error MsgBox "Not Correct Choice"
But nothing worked. My requirement is a small peice of
code, that on error, it will just cancel the event, so
that it will not display any error dailog box etc. , and
this code I will put where ever it may be necessary just
above the End Sub Line
Can any please advise me