Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modal property after form opened as dialog

Status
Not open for further replies.

risicare

Programmer
Oct 14, 2002
13
GB
I'd like to determine whether a form has been opened in dialog mode (modal = yes, popup = yes) after using DoCmd.OpenForm.

I thought it would be as simple as -

If Me.Modal = True And Me.Popup = True Then ...

BUT, Me.Modal returns FALSE even when the form has been opened as dialog.

Is there a simple way of getting around this?

Thanks in advance!!
 
Hi,

I have tried this myself and it seems to work correctly when you check it in the Form_Load event. Might be a stupid question, but are you 100 % certain the property is set correctly in the form you are trying to open?

Thanks


Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top