[AccessD] Form positioning another try

Tina Norris Fields tinanfields at torchlake.com
Sun Jul 27 13:43:35 CDT 2008


Hi,

Didn't get anyone to bite on my previous query about this, so I'll try 
it a little different way.

I have a form we'll call frmMyForm.  I want it to be in a certain 
position 6000 twps from the left edge of the window and 1200 twps from 
the top edge of the window.

If I put the DoCmd.MoveSize 6000, 1200 in the On Activate event of the 
form and call the form from some other form with a command button that 
has in its On Click event the DoCmd.OpenForm frmMyForm, all is well.  
The frmMyForm opens in the desired position.  However, if I double-click 
the icon for frmMyForm in the Forms container, frmMyForm opens in a 
slightly higher position - about 400 twps higher, as a matter of fact.  Why?

I've tried my DoCmd.MoveSize in every event I can think of that should 
launch frmMyForm in the correct position - On Open, On Load, On Resize, 
On Current, On Activate, On GotFocus - no go.  It works fine if called 
by code attached to some command button, but it does not work when the 
frmMyForm icon is double-clicked from the Forms container in the 
Database window.  Why?

What am I doing wrong here?  Thanks for any assistance.

Tina



More information about the AccessD mailing list