By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,454 Members | 2,633 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,454 IT Pros & Developers. It's quick & easy.

Form_Current SetFocus Scrollbar Issue

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.