Pause Macro Then Resume

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to pause a macro at a certain point to allow the user to enter
data in a query that opens, then close the query and the macro resumes at
that point and finishes.
 
lreecher,

The recommended approach here would be to make a form based on the
query, and open the form for your user's input, rather than opening the
query datasheet itself. (As a matter of fact, it is *never* a good idea
to expose a query datashewet in normal dataqbase usage!)

Then, split the macro into two. The first part of the macro runs to the
point that the form opens. Then, put a command button on the form, and
assign the second part of the macro on the Click event of this button,
which the user clicks after they have done their data work.
 
Thanks for the good advice.

Steve Schapel said:
lreecher,

The recommended approach here would be to make a form based on the
query, and open the form for your user's input, rather than opening the
query datasheet itself. (As a matter of fact, it is *never* a good idea
to expose a query datashewet in normal dataqbase usage!)

Then, split the macro into two. The first part of the macro runs to the
point that the form opens. Then, put a command button on the form, and
assign the second part of the macro on the Click event of this button,
which the user clicks after they have done their data work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Macro pause 1
Pause Macro, take action, then continue 2
Run Macro If Cell have "x" value 0
Close Form Doesn't 4
How can I 'pause' a Macros 2
pause/resume macro 1
Excel On Error Resume Next 2
Macro to pause after each query 2

Back
Top