T
Tony Toews
Ant said:I have used the code below witch works if there is an error but also shows
the message box when there is no error but code runs anyway after you OK the
message box.
I can’t see what it is I am doing wrong, can any one help?
Private Sub ComFilter_Click()
On error GoTo EntDate
‘My Good code goes hear
exit sub
EntDate:
MsgBox “My message txt”
End Sub
Insert the above exit sub line as you see.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm