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!

Running Sum of Sales Quantities

Status
Not open for further replies.

cwhite23

Technical User
Sep 17, 2003
66
US
OK, I'm at my wits' end on this one! I need to be able to take a query of all of our open orders, and have a field that shows a running total on a line-by-line basis of our stock levels. For Example:

Item # Qty OH On Order Balance
123 100 10 90
123 100 25 65
123 100 75 -10
etc.

I have been going around in circles with the DSum function and have gotten nowhere. Anyone have any ideas? My goal here is to show all of the orders that we can ship based on current stock levels. Any help would be appreciated.
 
I've been through every thread I can find on both of those subjects without success. I keep getting a grand total for all records. Any ideas?
 
I downloaded the software and took a look at how they were doing it. That's exactly what I need with one exception. Our Item numbers are alphanumeric. Can DSum work with this or does the Item number have to be numeric? If, now, what are our options?
 
Any chance you could post what you have tried so far ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Actually, I finally got it to work. In all of my reading on the DSum command, I had not run across the fact that you can't do a DSum on an alphanumeric (text) field. What I ended up having to do was to assign a unique ID number to each of our item numbers (which are alphanumeric), and used DSum on the ID field. I still appreciate all of the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top