469,964 Members | 1,671 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

How to automatically scroll up to the Form

14
I have a form with 2 tabs and a header.
Tab1 has some text fields on it and button.
At form load the 2nd tab is not visible.

When i enter some text in the fields under Tab1 and then click the button, the set focus is set to Tab 2 and tab1 disappears.
the problem is that when the tab 2 appears, the form does not scroll to the top. Instead the scroll bars remain in the middle.

Is there way, that when i click the button, the scroll bars are automatically set to the top of the form.

Please help.
Jul 24 '07 #1
1 5436
missinglinq
3,532 Expert 2GB
The ususal problem, when this happens, is that the first control to get focus is down far enough on the form, or in this case the tabbed page, that Access has to scroll down to make it visible. When you move to the second tabbed page, try setting focus to a control at the top of the page.

Welcome to TheScripts!

Linq ;0)>
Jul 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by dschectman | last post: by
3 posts views Thread by Devonish | last post: by
reply views Thread by Bill Reed via AccessMonster.com | last post: by
2 posts views Thread by Bob Alston | last post: by
6 posts views Thread by =?Utf-8?B?UGF1bCBT?= | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.