Hi, I need to be able to my db to automatically run a report when the running total of a list of values reaches a certain amount.
At the moment, my database creates a daily list of products that we have sold that day and produces a report that shows the number of items sold and the total purchase cost of each item. We use this to create a csv file that we send to the supplier to reorder those products on the list.
However, what I need to do is to break this list up into sub lists, when the running total of the list reaches a predetermined value (say £250).
This will then allow me to send orders to the supplier in "bitesize" chunks which improves his delivery time to us as he himself is working on smaller orders throughout the day.
The list is sorted by the SKU, so on a particular day, if we have sold several identical products, our system already totals these into one line that shows the number of products and the total cost. This means we only place one order per day of each product.
We currently achieve this splitting by taking the full csv spreadsheet and then cutting / pasting it into several other sheets so that each sheet contains products to the total value of approx £250 each but this is clearly an inefficient and primitive way of doing it, hence the requirement to get Access to do this automatically.
The £250 figure won't of course need to be to the penny, we may have to somehow instruct the report to run when the value is between £230 to £290.
Would appreciate someone's help with this. I realise it sounds somewhat complicated but that's from a layman's perspective - I'm sure there's plenty of experts out there that can provide a solution!
Thanks in advance.
Mike