pop up placement

C

Chrissy

Can anyone point me to where I can find out how to place
a popup in a set position when opening? The autocenter
property is ok, but I like my user to see a certain field
on the underlying form.

Thanks,
Chrissy
 
F

fredg

Can anyone point me to where I can find out how to place
a popup in a set position when opening? The autocenter
property is ok, but I like my user to see a certain field
on the underlying form.

Thanks,
Chrissy

Set the AutoCenter property to No.

In the load event of the PopUp form
DoCmd.MoveSize , , From Left Position, From Top Position

All measurements are in Twips; 1440 = 1 inch.

See VBA Help.
 
S

Stephen Lebans

In addition to Fred's comments see:
http://www.lebans.com/openform.htm
OpenFormRelativeToControl.zip is an MDB showing how to open a second
Form relative to a control on the parent Form.



Version 1.4

Added logic to handle form's with their Popup property set to True.
Added support for the following positions relative to the specified
control.

' 0 = Underneath
' 1 = On Top
' 2 = Right Side
' 3 = Left Side
' 4 = Bottom Right Hand Corner

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

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

Similar Threads


Top