Application-defined or object-defined error message

G

Guest

I have a cmdbutton on a popup form.

When I click on it I would like it to minimize my form [frmAlerts] and open
a report. (The report is looking for data on the minimized form).

When I close the report I want to maximize frmAlerts.

Forms![frmAlerts].Minimize

I get an Application-defined or object-defined error message.

I know this is probablly very easy but I'm not getting it.

Any help is appreciated.
 
V

Van T. Dinh

There is no Minimize Method for a Form Object AFAIK.

You probably want to use the DoCmd.Minimize while the Form still has the
Focus before opening the Report.
 

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