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

How To Pause While a "Form" MsgBox Runs

Status
Not open for further replies.

fbueller

Programmer
Joined
Sep 6, 2006
Messages
9
Location
US
I am working in an ADP. Since I had a hard time customizing MsgBox interaction with a user(ex: making text bold), I followed some advice and created forms I call in lieu of a MsgBox. Primarily I use the Forms to validate new record entries made by a user before a complete entry is recorded in the database. When the user hits the 'Record Entry' button, I pop up a form to have the user double-check entries they were allowed to enter as free text.

If the user selects 'No', the entries are not correct and I redirect the user back to the last Form control where they entered data. This works. If the user selects 'Yes', I want the program to move through the additional lines of code in the RecordEntry module.

The problem I am running into is that once I pop up the form with the DoCmd.OpenForm funtion, the rest of the RecordEntry code continues to run in the background. How can I pause the program while I allow the Form to run?
 
Open the form as modal ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top