Vertical position of a pop-up form

andrewf10

Registered User.
Local time
Today, 10:11
Joined
Mar 2, 2003
Messages
114
Hello all,

I'm asking this more in hope than expectation but here goes...

Is there any way to open a pop-up form so that it's positioned vertically central on the screen and not one third from the top as it is now?

Any help on this one would be greatly appreciated as ever

Andrew
 
Andrew,

A pop-up form is a form with it's pop-up property set to true, which will make it stay on top of all other forms. Is that what you are referring to? If so:

"To position a pop-up form on the screen, open the form in Design view, maximize the Microsoft Access window, position the form where you want it, and then save the form. The form will appear in this location when it's opened (assuming the AutoCenter property is set to No and you haven't specified its position in the event procedure that opens the pop-up form)."

Or do you mean the "form" that pops up when using the MsgBox function in code? If so, you can make your own message box form; create a regular old Access form, position it on screen and open it from code using the acdialog parameter, as so:

Code:
DoCmd.OpenForm "MyMsgBox", , , , , acDialog

All code will halt until the dialog form is closed or hidden.

Regards,
Tim
 
Tim,

Many thanks for the reply. I should've given you some more info but I'm in business now.

The form was a pop-up form, 9cm wide by 3cm high, with a pop-up property set to True. As you said I needed to change the Autocenter to 'No'.

But Access still wouldn't let me move the form in Design view. Instead it stayed locked to the top left position.

So after a bit of tweaking with some of the properties, I found I also had to change the border style to 'Sizable' and go into Form View. I then dragged the small pop-up form to what appeared like the center both horizontally and vertically and saved it. Then I changed the border style back to 'None'.

In any case I've learned lots once again, another issue solved.

Thanks again Tim,
Andrew
 

Users who are viewing this thread

Back
Top Bottom