Detail on Single Form with Tab Not Displaying at Top

  • Thread starter Thread starter cp2599
  • Start date Start date
C

cp2599

I have a long detail form with three tabs. When the form is opened,
the top of the detail section is not displayed; therefore, the user
has to scroll down to see the tabs. I've tried SelTop but that
doesn't seem to work on single forms. Please let me know if you have
any suggestions. Thanks.
 
comments inline.

I have a long detail form with three tabs. When the form is opened,
the top of the detail section is not displayed; therefore, the user
has to scroll down to see the tabs.

i think you mean the user has to scroll *up* to see the tabs, correct?
I've tried SelTop but that
doesn't seem to work on single forms. Please let me know if you have
any suggestions. Thanks.

my first suggestion would be to shorten the form, so the user can see the
entire form at one gulp - but that's my personal design preference. it's
likely that your problem is that the first control in the Tab order is lower
on the form, which "scrolls" the form down when that control gets the focus.
suggest you set an unbound, locked, enabled textbox control at the top of
the Detail section, and set it first in the Tab Order. i usually call that
control txtTabStop. set the Height and Width properties to 0", and set the
textbox label's Visible property to No. (i don't delete the label from the
control, because it makes it easy to see where the control is in Design
view.) you can add code to the form's Current event to SetFocus first to
txtTabStop, then to the first "usable" control in the Detail section.

hth
 
Thank you. I had the focus set on the first tab, but it was the
second tab that was causing the problem.
 
Thank you for replying. I had the focus set on the first tab, but it
was the second tab that was causing the problem.
 
Back
Top