Positioning a Form

G

Guest

One of my DBs has a form that's displayed on open, in "restore" mode. I want
it centered in the Window, but it insists on positioning itself at upper left
even though I have AutoResize and AutoCenter set to true. Apparently there's
another setting somewhere that I'm missing. Who can help?
 
F

fredg

Look up the MoveSize method in VB help.

Check if the Form's Open or Load events has any code such as:

DoCmd.MoveSize xxxx,yyyy

where xxxx and yyyy are numbers.

If so, simply comment out that line by placing an apostrophe (') in front of
it.

However if the code is like

DoCmd.MoveSize xxxx,yyyy,aaaa,bbbb

where aaaa and bbbb are also numbers, that not only positions the form but
sizes it as well.
You'll have to change the code to:

DoCmd.MoveSize , , aaaa,bbbb
 
G

Guest

Nope, no "MoveSize" anywhere -- never even heard of it until now, so I'm sure
it's nowhere in my code. Any other ideas? (And thanks for this one.)
 

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