![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |