Print last entry

D

D Mainland

I print a report based on a query. The query takes data
from two different tables, a customer table and a
transaction table. Is there any way to print the report
for the last transaction without having to enter the
transaction autonumber as a parameter.
 
A

Arvin Meyer

If you have a timestamp, you can write a query using the TOP predicate as
the report's recordsource. You can also use the ID field if it's a
sequential autonumber (aircode):

Select TOP 1 *
From rblWhatever
Order By TimeStampField Desc;
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

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