Record x of y using ado

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

Gary Miller

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
 

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