Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnClick Event

Status
Not open for further replies.

cneill

Instructor
Mar 18, 2003
210
GB
I have this code on the On Click Event, which does work but I need it to do some other things

Private Sub LabelDetailSearch_Click()
If Me!SubFrmEEC2CFL.SourceObject = "SubFrmEEC2CFL" Then
CFLValidationSequence
Else
....
End If
Exit Sub

If the "SubFrmEEC2CFL" is true then I need the OnClick Event to stop, how do I do this?
also
If after runing the CFLValidationSequence (basically checks to make sure that various rules regarding the data on the form is all correct)if it finds that that everything is okay then the on click event sould continue
How do I do this?
Thanks in advanace
 
Have a look at the Exit Sub instruction.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top