Center a form

E

EAB1977

I am trying to centermy login form using the GetSystemMetrics API, but
I wondered if someone had a formula for this? VB has one where you use
Screen.TwipsPerPixelX, but this doesn't work in VBA, or I am not
setting the correct reference for it.

Your help is grealy appreciated.
 
K

Ken Warthen

EAB,

Is there some reason you can't use Access's built in Auto Center form
property?

Ken
 
K

Ken Warthen

Open your form in design view. Click or select the Format tab of the
property sheet. Verify "Form" is selected in the selection type of the
property sheet. Set the value of the "Auto Center" property to "Yes." Save
the changes to the form, and you should be good to go.

Ken
 

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