T tmb904 Registered User. Local time Today, 10:02 Joined Jun 17, 2010 Messages 12 Jun 29, 2010 #1 Anyone have a code for centering the form. I historically will specify in the properties section of the form but it seems my forms is also left aligned on the screen when it is maximized.
Anyone have a code for centering the form. I historically will specify in the properties section of the form but it seems my forms is also left aligned on the screen when it is maximized.
apr pillai AWF VIP Local time Today, 20:32 Joined Jan 20, 2005 Messages 737 Jun 30, 2010 #2 1. Set the following Form Property Values as given below: Popup = Yes Min Max Buttons = Min Enabled 2. Add the following VBA Code into the Form Module: Code: Private Sub Form_Current() DoCmd.Restore End Sub
1. Set the following Form Property Values as given below: Popup = Yes Min Max Buttons = Min Enabled 2. Add the following VBA Code into the Form Module: Code: Private Sub Form_Current() DoCmd.Restore End Sub
T tmb904 Registered User. Local time Today, 10:02 Joined Jun 17, 2010 Messages 12 Jun 30, 2010 #3 Thank for the feedback APR! But I may of miscommunicated my goal.... I would like to form to open and maximize. Then I would like the contents of my form to center. Your current solution only centers my form.
Thank for the feedback APR! But I may of miscommunicated my goal.... I would like to form to open and maximize. Then I would like the contents of my form to center. Your current solution only centers my form.
boblarson Smeghead Local time Today, 07:02 Joined Jan 12, 2001 Messages 32,040 Jun 30, 2010 #4 tmb904 said: Thank for the feedback APR! But I may of miscommunicated my goal.... I would like to form to open and maximize. Then I would like the contents of my form to center. Your current solution only centers my form. Click to expand... For that you'll need some pretty intense coding to occur. UNLESS you are using Access 2010 and can use the new forms that they have.
tmb904 said: Thank for the feedback APR! But I may of miscommunicated my goal.... I would like to form to open and maximize. Then I would like the contents of my form to center. Your current solution only centers my form. Click to expand... For that you'll need some pretty intense coding to occur. UNLESS you are using Access 2010 and can use the new forms that they have.