Record x of y using ado

  • Thread starter Thread starter Gene
  • Start date Start date
G

Gene

Can someone please tell me how, using ADO and Access
2000, to get record x of y displayed in a text box on a
continuous form?

I have buttons to move next, previous, last, and first on
the form. Also buttons that filter by selection, filter
excluding selection, sort a - z, sort z - a.

What is the ado code that will work in the form's current
event that will properly display record x of y for the
form in the text box given the various filter and sort
command buttons on the form? (X is the selected record
and y is the total number of records displayed on the
form.)

Thank you very much.
 
You can use the CurrentRecord and RecordCount properties to
show Me.CurrentRecord & " of " & Me.RecordCount or something
similar depending how you are supplying the data to the
form.

Gary Miller
 
Back
Top