Opening a form in a Do Cycle

M

Maracay

Hi guys,

I have a do cycle, and depending on some conditions I need to stop the cycle
and open a pop form to modify the data of the current record, after I close
the pop form, the cycle should continue to the end of the file or stop again
to modify the current record.

I don’t know how to stop the cycle after opening the form, what actually
does is open the form if the condition is fulfill but the cycle goes to the
end.

Any help will be appreciated

Thanks
 
M

Marshall Barton

Maracay said:
I have a do cycle, and depending on some conditions I need to stop the cycle
and open a pop form to modify the data of the current record, after I close
the pop form, the cycle should continue to the end of the file or stop again
to modify the current record.

I don’t know how to stop the cycle after opening the form, what actually
does is open the form if the condition is fulfill but the cycle goes to the
end.


Open the form in dialog mode (instead of popup modal) to
stop you code until the form is either closed or made
invisible:

DoCmd.OpenForm "the form", WindowMode:=acDialog
 

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


Top