Top of Form Cut Off

B

Berny

Hello,

I have a long form that when it opens the top of the form (with the title
and heading information) does not show.

I need to manually scroll to the top of the form.

Is there a way to have the form open with the default being scrolled all the
way to the top.

Any help will be greatly appreciated
 
T

tina

when the form is longer than the open window, the form will "settle" with
the first control in the tab order (where TabStop = True) at the top of the
window. you can set an unbound control at the very top of the form (Detail
section if there's no form header; Header section if it's there), with the
following settings:
Name = txtTabStop
Visible = True
Enabled = True
Locked = True
Tabstop = False
BorderStyle = Transparent
Width = 0"
Height = 0"
set the control's label's Visible property to False.

in the form's Load event procedure, move the focus first to txtTabStop, then
to the first data entry control, as

Me!txtTabStop.SetFocus
Me!MyDataEntryControl.SetFocus

hth
 
O

Ofer

Hi, Berny

Look at the Tab order of the fields in the form, probably the first field in
the order placed on the buttom of the form, and that cause the form to move
down, when it set the focus to this field.
Make the first field in the tab order to be one of the fields in the top of
the form
 
T

TomC

tina,
Happy to see you are still helping people. You helped me out of the woods
quite a while back, and I still appreciate it. I had many form-subform
problems and you led me through the maze. Thanks again.
tom
 
T

tina

you're very welcome, Tom. :) those subforms are pesky things until you
get the hang of them - and then you quickly grow to love them!
i hope that my suggested solution to Berny has as happy an outcome. <g>
 
B

Berny

Thank you

tina said:
you're very welcome, Tom. :) those subforms are pesky things until you
get the hang of them - and then you quickly grow to love them!
i hope that my suggested solution to Berny has as happy an outcome. <g>
 
Top