problem with modal not blocking

I

icccapital

I have a form set to modal and popup yes and default view is single form.

I am in Access 2007 and I have code that in one form that calls:
DoCmd.OpenForm "PrintDialogForm", windowmode:=acDialog
or
DoCmd.OpenForm "PrintDialogForm"

Neither of these blocks until the form "printdialogform" is closed, it just
continues running in the calling form. Has anyone seen this before?
 
J

JimBurke via AccessMonster.com

Here's what has always worked for me:

DoCmd.OpenForm "frmThatIsPopup", acNormal, , , acFormEdit, acDialog

then for the popup form, I only specify PopUp, not modal - don't know if that
matters or not, but it's what I've always done. The code will always stop at
the OpenForm statement and wait until the Popup closes when I do it this way.
I have several forms that I use this with. I don't know if those other
parameters in the OpenForm statement matter or not. I'm using 2000, so I
don't know if there are any differences in newer versions.
 

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