Center a form

  • Thread starter Thread starter EAB1977
  • Start date Start date
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.
 
EAB,

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

Ken
 
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
 
Back
Top