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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Waiting for a command button press 1

Status
Not open for further replies.

MikeCt

Programmer
Joined
Nov 6, 2001
Messages
44
Location
US
Hi
Is there any way to make a procedure wait till a command button is pressed ( Much like "ok" in a message box)

Thanks
Mike
 
Why not just call the procedure in the button's click event?
 
I was looking for a way to pause the procedure, waiting for a responce like the way the msgbox works. I'm learning the msgbox is a form that opens on top of the original form. I believe this is why it is able to pause the procedure in the original form till the comand button is pressed in the msgbox form. This returns it back to the following lines in the original form. What I was hoping to do does not seem possible.

Thank you for your time
Mike
 
You could open a form as modal and code execution will halt until you've doen what you need to do on that form (i.e. press a button). This is pretty simply much how a message box works.

Regards

Andy
---------------------------------
Zebracorn: 50% Zebra, 50% Unicorn = 100% Real.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top