Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show the form all the way to to the top?

Status
Not open for further replies.

hshaker

Technical User
Jun 29, 2007
66
CA
I have created a tab control with several pages in a form and whenever I open the form I don't see the pages because it is going to first text field control.

How would I make sure that whenever the form is opened or a new record is created the vertical scroll bar is all the way to top so that I am able to see the tabbed pages.

 
Have you checked the TabIndex property of your controls ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Yes I have they are in the tab order that I created (1,2,3,4 ..) there is no negative number.

I don't know if I am say this right

A tab control is an object where you place on the form and can create different pages.

When the forms opens the top of the tab control object is hidden and I have to scroll up to see the different pages.

 
As PHV indicated, it sounds like the first control that gets focus is lower down on the form, forcing Access to scroll down slightly.

Try setting the topmost control 'inside' your Tab to TabIndex=1, and ensure that TabStop=Yes.

It may help you to know which control really has the focus when you open the form. You could add this temporarily to the form's OnOpen event to find out, if you're not 100% sure:

Msgbox "The control with focus is: " & screen.ActiveControl.name

Max Hugen
Australia
 
How are ya hshaker . . .

It could be that the height of your [blue]mainform[/blue] is too large for the screen! If its set for [blue]Single View[/blue] you'll know if scrollbars are showing.

Reduce the height of the mainform and/or tab control until the scroll bars disappear.

Calvin.gif
See Ya! . . . . . .

Be sure to see FAQ219-2884:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top