472,371 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 software developers and data experts.

How to automatically scroll up to the Form

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 5849
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

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

Similar topics

by: dschectman | last post by:
I have an interesting issue. I need to implement a dynamic table to mimic a select list. Each time you double click from the master list, a row is added to the list of selected items. The list...
by: Tim | last post by:
Hello, I'm using Access 2000 and I have a main form with a large subform. When tabbing through the fields on the main from, the screen automatically tabs down, as I like, but when I tab into the...
by: Devonish | last post by:
I have a form designed as a Continuous form which displays one record per line. Taking account of the header and footer and the size of the screen, I can display 30 records at a time. I can see...
by: Bill Reed via AccessMonster.com | last post by:
I have an overly long detail section of a form. Is there anyway to automatically force the detail section to scroll down as the user tabs through the fields, while keeping the form header section...
by: Dan Sikorsky | last post by:
I'm using SmartNavigation and need to automatically scroll to the top of the page when the ValidationSummary control catches errors and displays them, so that the user can see the errors without...
by: usenet | last post by:
When I open a form design window in Access 2003 it *always* has scroll bars, this is even when the form itself is tiny. It's as if the 'page' on which the form is being designed is very large. ...
by: bobdydd | last post by:
Hi Everybody Access 2000 Windows xp On a form with a single command button connected to a database of 1 thousand records. I would like to be able to press the command button and...
by: Bob Alston | last post by:
I have a form that is longer than the screen size, so there is a scroll bar to the right of the form. Inside the form there is a memo field that is longer than the height of the screen. It...
by: =?Utf-8?B?UGF1bCBT?= | last post by:
Hi I have a screen display news data stored in a database. Sometimes the amount of data displayed exceeds the screen size. How can I make this scroll automatically over and over again ? thank...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.