dbTalk Databases Forums  

Restore / Maximize

comp.databases.ms-access comp.databases.ms-access


Discuss Restore / Maximize in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Phil
 
Posts: n/a

Default Restore / Maximize - 02-17-2011 , 06:40 PM






Opening forms in a library reference to an external database, I use the for
the OnOpen Event

DoCmd.SelectObject acForm, Me.Name
DoCmd.Restore

The size seems very variable, in particular, continuous forms open only1
record high + header & footer. Forms from the main Db open as expected.

Any bright ideas please

Phil

Reply With Quote
  #2  
Old   
Sky
 
Posts: n/a

Default Re: Restore / Maximize - 02-18-2011 , 05:53 AM






On 2/17/2011 7:40 PM, Phil wrote:
Quote:
Opening forms in a library reference to an external database, I use the for
the OnOpen Event

DoCmd.SelectObject acForm, Me.Name
DoCmd.Restore

The size seems very variable, in particular, continuous forms open only1
record high + header& footer. Forms from the main Db open as expected.

Any bright ideas please

Phil
You might call DoCmd.Restore before opening the form.

Is the form property set for Auto Resize? Setting it to True usually
works, but if you want to manually set a size, you should set it False,
resize it manually, and save it.

Why are you calling DoCmd.SelectObject using Me.Name? It does not seem
necessary. When you open a form, it normally gets the focus automatically.

Also, doing it in the form Open event is a little strange, since the
form is normally not yet open and visible at that time (although perhaps
the SelectObject forces it to become visible). Perhaps the OnLoad event
would be better, after the form has been displayed in the normal case.

Steve

Reply With Quote
  #3  
Old   
Phil
 
Posts: n/a

Default Re: Restore / Maximize - 02-18-2011 , 06:04 PM



On 18/02/2011 11:53:31, Sky wrote:
Quote:
On 2/17/2011 7:40 PM, Phil wrote:
Opening forms in a library reference to an external database, I use the for
the OnOpen Event

DoCmd.SelectObject acForm, Me.Name
DoCmd.Restore

The size seems very variable, in particular, continuous forms open only1
record high + header& footer. Forms from the main Db open as expected.

Any bright ideas please

Phil

You might call DoCmd.Restore before opening the form.

Is the form property set for Auto Resize? Setting it to True usually
works, but if you want to manually set a size, you should set it False,
resize it manually, and save it.

Why are you calling DoCmd.SelectObject using Me.Name? It does not seem
necessary. When you open a form, it normally gets the focus automatically.

Also, doing it in the form Open event is a little strange, since the
form is normally not yet open and visible at that time (although perhaps
the SelectObject forces it to become visible). Perhaps the OnLoad event
would be better, after the form has been displayed in the normal case.

Steve

Thanks for coming back, Steve. No joy. Form set to Auto resize, and tried the
Restore in the OnLoad event. Incidently I always do
DoCmd.SelectObject acForm, Me.Name
DoCmd.Restore
in the OnOpen event and it always works for forms in the main database.
Please don't think I am rude, but I posted am additional message "Restore /
Maximize" in this NG on 18th Feb, and it seems silly to run 2 threads on the
subject, so would appreciate your input on that thread Thanks

Phil

Reply With Quote
  #4  
Old   
Phil
 
Posts: n/a

Default Re: Restore / Maximize - 02-18-2011 , 07:13 PM



On 18/02/2011 11:53:31, Sky wrote:
Quote:
On 2/17/2011 7:40 PM, Phil wrote:
Opening forms in a library reference to an external database, I use the for
the OnOpen Event

DoCmd.SelectObject acForm, Me.Name
DoCmd.Restore

The size seems very variable, in particular, continuous forms open only1
record high + header& footer. Forms from the main Db open as expected.

Any bright ideas please

Phil

You might call DoCmd.Restore before opening the form.

Is the form property set for Auto Resize? Setting it to True usually
works, but if you want to manually set a size, you should set it False,
resize it manually, and save it.

Why are you calling DoCmd.SelectObject using Me.Name? It does not seem
necessary. When you open a form, it normally gets the focus automatically.

Also, doing it in the form Open event is a little strange, since the
form is normally not yet open and visible at that time (although perhaps
the SelectObject forces it to become visible). Perhaps the OnLoad event
would be better, after the form has been displayed in the normal case.

Steve

Thanks for coming back, Steve. No joy. Form set to Auto resize, and tried the
Restore in the OnLoad event. Incidently I always do
DoCmd.SelectObject acForm, Me.Name
DoCmd.Restore
in the OnOpen event and it always works for forms in the main database.
Please don't think I am rude, but I posted am additional message "Restore /
Maximize" in this NG on 18th Feb, and it seems silly to run 2 threads on the
subject, so would appreciate your input on that thread Thanks

Phil

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.