473,507 Members | 3,706 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form_Current SetFocus Scrollbar Issue

I'm having an issue with my "Single Form". There is a vertical
scrollbar that is used to view all fields on the form. During the
Form_Current procedure, I perform some checks of values and based on
those values I set some fields to not be enabled. At the end of the
Form_Current procedure, I set focus to the field at the top of the
form.

The problem is that the form does not scroll all the way to the top of
the form - it just goes enough to give focus to that field.

Is there a way to scroll the form to the very top?

Thanks!
Nov 13 '05 #1
1 3066
Generally, setting the focus to the control at the top of your Form with
cause Access to automagically scroll the form to bring the control into
view. Since for whatever reason that logic is not working in your
specific situation then you can use the fSetScrollBarPos function found
here:
http://www.lebans.com/setgetsb.htm

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"L.H." <tr********@yahoo.com> wrote in message
news:22**************************@posting.google.c om...
I'm having an issue with my "Single Form". There is a vertical
scrollbar that is used to view all fields on the form. During the
Form_Current procedure, I perform some checks of values and based on
those values I set some fields to not be enabled. At the end of the
Form_Current procedure, I set focus to the field at the top of the
form.

The problem is that the form does not scroll all the way to the top of
the form - it just goes enough to give focus to that field.

Is there a way to scroll the form to the very top?

Thanks!


Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4891
by: Roderik | last post by:
Hi, At http://archytas.nl/ there appears to be a horizontal scrollbar when using Mozilla Firebird (not in IE). The website (container DIV) should be 770 px wide, so there shouldn't be any reason...
0
6066
by: Jeje | last post by:
Hi everybody, I have an issue using the scrollbar under Internet explorer 6, WinXP and transitional.dtd. Here's my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
1692
by: markusszil | last post by:
Hello all I have a fairly simple listbox into which I add, insert, and remove strings It has the following property settings HorizontalScrollbar - true HorizontalExtent - ScrollAlwaysVisible...
5
8020
by: Spondishy | last post by:
Hi, I am using the following in my stylesheet to center divs in firefox. html>body { font-size: 13px; } div.centerdiv {
2
2914
by: Steve Richfie1d | last post by:
In Access 97, in the Form_Current routine of a form, I call another routine that repopulates and recomputes everything. However, a SQL Select statement that I initiate from DAO that refers to a...
5
3263
agroover
by: agroover | last post by:
I can't seem to figure out how to get rid of the errors. I recieve the following error when I leave the Grade.SetFocus in my code... Microsoft Access can't move the focus to the control Grade ...
2
2301
by: qhimq | last post by:
Hi windows API programmers, I'm so close to making my vertical scrollbar to work properly, except for: After pushing or dragging the scrollbar the window scrolls properly until I let go of the...
3
5052
hsriat
by: hsriat | last post by:
How can I temporarily disable vertical scrollbar? I have replaced confirmation boxes and alert boxes with inlay popup DIVs. But while they are on the screen, I need to disable scrollbar of the...
0
1116
by: ton | last post by:
Hi, I fill a treeview. It shows about a few 100 nodes. I want the vertical space limited (the height) so it fits the screen and with a special scrollbar, just like the modal treeview control,...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.