Close form on opening report

bodylojohn

Registered User.
Local time
Today, 14:25
Joined
Dec 28, 2005
Messages
205
Hello,

When I open a report from a form (dialog) I want to close the form as soon as the data is displayed on the report.

I know "docmd.close" doesnt work.

What will?
 
What will?

Well....I would have to say....DoCmd.Close

But in this fashion and placed into the OnActivate event of your Report:

DoCmd.Close acForm, "myFormName"

.
 

Users who are viewing this thread

Back
Top Bottom