Pause Macro Then Resume

L

lreecher

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.
 
S

Steve Schapel

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.
 
L

lreecher

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

Top