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

Access 2000 query

Status
Not open for further replies.

Donkey1

Technical User
Sep 3, 2002
91
GB
I have inheireted a database and not being a guru on the subject I wondered if some one could help.

Our database contains stores items and they are trying to print a report giving stocktake details. Everything looks ok apart from the totals for each group.

What is happening is that a total is being given but it is only taking the last figure in a section e.g. if you had 5 different types of loo cleaner in stock with values of 7.50, 10.50, 6.00, 3.75, 11.74 it would only take the 11.74 value to add to give the total at the end of the group.

The value of the individual stock items has been calculated using the formula =[unitprice]*[in stock] which is ok for totals of individual stock items. The value for each group total is calulated using =[typelinevalue] where linevalue is the name given to the individual totals for stock products.

I have tried changing the running sum options but to no avail, it still only takes the last figure in each section.

Does any one know why? Am I missing something really obvious?

regards...Andy.
 
Problem solved. Have managed to sort this out myself. I used the formula =Sum([unitprice]*[in stock]) and this gave me the total I was after. I still don't understand why the other one would not work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top