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

Query - add totals

Status
Not open for further replies.

ZOR

Technical User
Jan 30, 2002
2,963
GB
Can someone please advise how I can get a further column in this query, showing an accumalative total. Many thanks


SELECT Orders.UnitPrice, Orders.Qty, CCur(Orders.UnitPrice*[Qty]/100)*100 AS Subtotals INTO new
FROM Orders;
 
Do you have some sample records and desired results? If you want to create a running total, you need a field that describes the order of the records.

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]
 
Many thanks. With the help of Remou I managed to get there, and yes thank goodness by luck, the records come out in ID order. Thanks, Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top