gotorecord 'acLast' not scrolling properly

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.
 
D

Dirk Goldgar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top