Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

floating form

ResolvedVersion 2003

Darren has attended:
Access Introduction course
Access Intermediate course
Access Advanced course
Access VBA course

Floating form

How do you make a form open in the center of the screen as opposed to the top left?

RE: Floating form

Hi Darren

Thank you for your question

You need to create a macro that will run when the form opens. This macro will have two commands

Restore will first restore the form.

MoveSize will then set the position and size of the form. It has 4 arguments right, down, width and height. They specify the position and size in centimeters or inches of the form.

Hope this is useful

Regards

Stephen

Thu 12 Mar 2009: Automatically marked as resolved.

Access tip:

Open A Combo Box Automatically

This is helpful if users need to enter large amounts of data. There are two ways to open ComboBoxes when they get the focus by using the tab keys.

When the ComboBox gets focus:

Press Alt + Down Arrow on the keyboard

For it to happen automatically, needs a bit of coding:

1. Add a combo box and a text box control to the form
2. Set the combo box's On Got Focus property to the following event procedure:

Private Sub ComboBoxName _GotFocus()

Me!ComboBoxName.Dropdown

End Sub


3. Open your form in Form View and use the TAB key to make sure it works.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.