arr records except last

D

deb

access 2003

In a report I need to show all records except the last one.
How can I edit the query to show all except the last one?

thanks
 
D

Duane Hookom

I would probably do this in the report by cancelling the Format of the final
detail section. Add a text box to the Report Header section:
Name: txtCountAll
Control Source: =Count(*)
Visible: No
Add a text box to the Detail Section
Name: txtRunCount
Control Source: =1
Running Sum: Over All
Visible: No
Then add code to the On Format event of the Detail Section of the report:
Cancel = Me.txtCountAll = Me.txtRunCount
 

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