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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Row counter on a query

Status
Not open for further replies.

Dbless

IS-IT--Management
May 8, 2002
22
US
I have two separate queries that gives me gross sales by customer account, one query for current year, and one for last years gross sales. I need to know in what order on both queries account number 12345 is at. For example: current year account number 12345 is ranked 40th, and last year account number was ranked 27th. I want to pass this information onto the report for displaying purposes. Question is how to a get a running total for each line item so that I get "1,2,3,4,...." on each row.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top