Hi,
Give at the before last argument of DoCmd.OpenForm 'acDialog', and your code will stop running until you closed that form, ie:
DoCmd.OpenForm "FormName", , , , , acDialog
Is that what you mean?
Else, try to explain more exactly and, if possible, post your code