Solved

How to interrupt code to make data changes

Posted on 2010-08-19
3
233 Views
Last Modified: 2013-12-25
I would like to know the best way to interrupt a Do Loop to display a form and make data changes.
For instance, my vba code is checking thru all contacts looking for discrepancies.  when one is located, I need to make changes in one or two fields, then take up the search again where I left off.

Can I suspend the code, maybe open a form with the fields needed, make corrections, then resume the code?

If not, are there other ways to accomplish the same thing?
0
Comment
Question by:David_W_R
3 Comments
 
LVL 23

Expert Comment

by:Kamaraj Subramanian
ID: 33476431
I think you can use the Sleep method
0
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 33477194
You can open a form using the acDialog parameter and that will halt the code until the form is closed.
0
 

Author Closing Comment

by:David_W_R
ID: 33477355
Just what the doctor ordered!  Thanks very much.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question