PC Review


Reply
Thread Tools Rate Thread

close Print Preview causes form to open in full window

 
 
Jomark
Guest
Posts: n/a
 
      5th Aug 2008
I have a database with a main menu form that closes when a report is opened
in print preview. The report opens in small view and clicking on full view
the only way to then close the report is by pressing the close print preview
button.

I have code in the report that when it is closed the main menu form opens.
Clickng on the close button on the report when it is still small returns the
main menu form in its normal size. However when clicking on the close print
preview button the main menu form opens in full screen view.

is there any way to prevent this from happening so that the main menu form
opens in its normal size.

I am using Access 2007
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      5th Aug 2008
Hi,
Perhaps you need to add:
docmd.Restore
In report close event

Also you can try this approach:
http://www.pointltd.com/Downloads/Details.asp?dlID=45
"the sample shows how to open MS Access report and make it window size match
access main window, while window is not maximized actually"

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com

"Jomark" <(E-Mail Removed)> wrote in message
news:367580FB-FF48-463B-863C-(E-Mail Removed)...
>I have a database with a main menu form that closes when a report is opened
> in print preview. The report opens in small view and clicking on full view
> the only way to then close the report is by pressing the close print
> preview
> button.
>
> I have code in the report that when it is closed the main menu form opens.
> Clickng on the close button on the report when it is still small returns
> the
> main menu form in its normal size. However when clicking on the close
> print
> preview button the main menu form opens in full screen view.
>
> is there any way to prevent this from happening so that the main menu form
> opens in its normal size.
>
> I am using Access 2007


 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      5th Aug 2008
Use a macro in the form's Activate event.
The Restore action will put the form back in its own window.

(This assumes you have set up the database for windows, not tabbed
documents.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jomark" <(E-Mail Removed)> wrote in message
news:367580FB-FF48-463B-863C-(E-Mail Removed)...
>I have a database with a main menu form that closes when a report is opened
> in print preview. The report opens in small view and clicking on full view
> the only way to then close the report is by pressing the close print
> preview
> button.
>
> I have code in the report that when it is closed the main menu form opens.
> Clickng on the close button on the report when it is still small returns
> the
> main menu form in its normal size. However when clicking on the close
> print
> preview button the main menu form opens in full screen view.
>
> is there any way to prevent this from happening so that the main menu form
> opens in its normal size.
>
> I am using Access 2007


 
Reply With Quote
 
Jomark
Guest
Posts: n/a
 
      5th Aug 2008
Thanks Alex and Allen for your responses.
Very much appreciated.
It works

"Allen Browne" wrote:

> Use a macro in the form's Activate event.
> The Restore action will put the form back in its own window.
>
> (This assumes you have set up the database for windows, not tabbed
> documents.)
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Jomark" <(E-Mail Removed)> wrote in message
> news:367580FB-FF48-463B-863C-(E-Mail Removed)...
> >I have a database with a main menu form that closes when a report is opened
> > in print preview. The report opens in small view and clicking on full view
> > the only way to then close the report is by pressing the close print
> > preview
> > button.
> >
> > I have code in the report that when it is closed the main menu form opens.
> > Clickng on the close button on the report when it is still small returns
> > the
> > main menu form in its normal size. However when clicking on the close
> > print
> > preview button the main menu form opens in full screen view.
> >
> > is there any way to prevent this from happening so that the main menu form
> > opens in its normal size.
> >
> > I am using Access 2007

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print preview and close form command Arlene Microsoft Access Forms 2 22nd Sep 2009 06:23 PM
RE: 'Binding' the print preview window to a form... Klatuu Microsoft Access Forms 0 13th Aug 2009 05:41 PM
Button to Open Form in Print Preview View adna Microsoft Access 3 20th Dec 2007 07:39 PM
Print Preview & Window Close Problem =?Utf-8?B?RGF2ZXkgUA==?= Microsoft ASP .NET 0 30th Apr 2007 11:30 AM
Form stays open in Print Preview =?Utf-8?B?RGVuaXNlIEQ=?= Microsoft Access Form Coding 4 13th Sep 2006 03:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 PM.