Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show Record number n of m 1

Status
Not open for further replies.

woter324

Technical User
Jan 26, 2007
179
GB
Hi,

I have a report that currently has six records.

I'd like to have a textbox in the report detail section that shows "record n of 6" I can use count() to get the '6' value but how do I get the 'n' value?

I'm looking for something similar to the
Code:
 ="page " & Page & " of " & Pages

i.e.
Code:
 ="Record " & {what goes here?} & " of " & count([someTable.someField])

Many thanks in advance

Woter
 
Add a text box to your detail section:
Name: txtCount
Control Source: =1
Running Sum: Over All
Visible: No
Then set your visible text box control source to:
=[txtCount] & " Of " & Count(*)

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Brillent.

Thank you very much. So simple :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top