Form changes size

J

Junior

I have an unbound startup form used to open various reports via cmd buttons.

when the form 1st opens it is the 'correct' size - however if i click a cmd
button to preview/print a report, click event is

DoCmd.OpenReport "rptEmp", acPreview, "", ""

after closing the report the startup form is maximized (fills the entire
screen)

I'm have no code to minimize/maximize ,or make the startup form visible/not
visible.
What can i do to make the startup form be consistently the proper size?
thanks for help
 
R

Rick Brandt

Junior said:
I have an unbound startup form used to open various reports via cmd buttons.

when the form 1st opens it is the 'correct' size - however if i click a cmd
button to preview/print a report, click event is

DoCmd.OpenReport "rptEmp", acPreview, "", ""

after closing the report the startup form is maximized (fills the entire
screen)

I'm have no code to minimize/maximize ,or make the startup form visible/not
visible.
What can i do to make the startup form be consistently the proper size?
thanks for help

Are you manually or in code maximizing the Report? In Access when you maximize one
object you maximize all objects. You could put a DoCmd.Restore in the Activate event
of the form.
 

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