Open form in upper left corner

  • Thread starter Thread starter RobJ
  • Start date Start date
R

RobJ

Guest
Hello,

I made a form of which height is bigger then my screen size. When the form is opened, you see only the lowest part of the form and not the top.

What I want is that people see the top first and when they scroll down the lowest part of the form. I remember something about an "x" and "y" function in VB.

When I search the forums, I can't find anything about it. Does someone know how this should be done?

tnx in regard.

RobJ
 
Why don't you just maximise your form? Then it's aitomaticly located in the upper right corner and you can scroll down to see the rest of your form. That is if you have not turned the scrollbars of.

You can also position your form at the place you want to and access should remember this wehn you reopen this form and put it in the same place again...
 
My form is maximised, but still does not open in the upper left corner. Also when I scroll to the right place, close it and the reopen it, it still keeps opening wrong.

Other suggestions?

RobJ
 
I suggest that you resize your form or use tabs since a tall form is hard for a user to manuver about. But, this code in the forms on open event will do what you want...
Code:
Private Sub Form_Open(Cancel As Integer)
    
    DoCmd.MoveSize 0, 0
    
End Sub
Check the help files for the MoveSize method for more info.

HTH
 

Users who are viewing this thread

Back
Top Bottom