Hi
have several forms in the database and in each under form proporties I have set auto center to yes.
When each of the forms is opened the form is show top left ie from point 0,0
How do I get the form to show up in the middle?
thanks
Ian
Hi
have several forms in the database and in each under form proporties I have set auto center to yes.
When each of the forms is opened the form is show top left ie from point 0,0
How do I get the form to show up in the middle?
thanks
Ian
the form either needs to be popup or modal or if neither of these, in the db properties (File>Options>Current Database) set the Document Window Options to Overlapping Windows
Hi
thanks for the reply, the latter suggestion works but does look "messy" as every button press seems to move the form.
When I do this in HTML I can get it to centre and maintain position when changing screens.
I'll have to keep experimenting
thanks
Ian
what is the code for ding this? You could write equivalent code in VBA to achieve the same thing.When I do this in HTML I can get it to centre and maintain position when changing screens.
Not sure what you mean by every button press moves the form - it should only move if you drag it.
Just a thought - are you developing a desktop or web app - I don't use it myself but understand the latter is quite limited in what you can do
Hi
I'm writing a desktop applications,
I did find some VBA code to put in the form on load event
which sort of made sense to me but it throws up an errorCode:Private Sub Form_Load() me.move (Screen.Width - me.Width) / 2, _ (Screen.Height - me.Height) / 2 End Sub
"method or data member not found"
which I am researching.
In any web sites I design I always make sure that between screens there is no jumping of fixed items such as menus.
Centralising using CSS is relatively simple as there is acommand so I don't see how this can be used in a desktop database.Code:center
Although I suppose you could run a web database from a cd using WAMP? However thats a bridge to far for me at the moment
cheers
Ian
If this is what you are experiencing then sounds like either your forms are different sizes or the same buttons are not in the same location on each form.I always make sure that between screens there is no jumping of fixed items such as menus
The screen object is an access object, not a windows object which is what I think you want.
The form will need to be located within the access window - it can only be located outside of this if it popup and/or modal
you may also find this link useful
https://msdn.microsoft.com/en-us/lib.../ff845906.aspx
Hi
thanks for the link
Ian