Solved

How to interrupt code to make data changes

Posted on 2010-08-19
3
231 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now