gotorecord 'acLast' not scrolling properly

  • Thread starter Thread starter David
  • Start date Start date
D

David

I have a tabbed form containing 6 tabs. Each tab displays
a subform allowing editing of different tables. Each
subform has 'top', 'bottom' and 'new' buttons that
execute 'gotorecord' statements for acFirst, acLast and
acNewrec respectively. In all cases, except one, these
buttons work perfectly. On one subform, the 'bottom'
button does not scroll to the bottom record. The arrow
marker points to the bottom record but it is not scrolled
to as on every other subform. The button handling code is
identical for each subform. Any idea what might cause
this??? My workaround was to code a 'gotorecord acNewRec'
before the 'gotorecord acLast.
 
David said:
I have a tabbed form containing 6 tabs. Each tab displays
a subform allowing editing of different tables. Each
subform has 'top', 'bottom' and 'new' buttons that
execute 'gotorecord' statements for acFirst, acLast and
acNewrec respectively. In all cases, except one, these
buttons work perfectly. On one subform, the 'bottom'
button does not scroll to the bottom record. The arrow
marker points to the bottom record but it is not scrolled
to as on every other subform. The button handling code is
identical for each subform. Any idea what might cause
this??? My workaround was to code a 'gotorecord acNewRec'
before the 'gotorecord acLast.

I'm not sure what you mean when you say, "The arrow marker points to the
bottom record but it is not scrolled to as on every other subform." On
the other subforms, is the last record scrolling to the top? You say
the last record becomes current, so I have to assume that it is visible
on the form, so why should it scroll? I must be missing something.
Please describe exactly what happens on these subforms.
 
Back
Top