Need technique to analyze data

A

A. T.

I am having trouble finding a way to analyze inventory data. Here's the
situation. I have data which shows all purchases during the year (including
data showing this same information which was still in inventory from the
previous years). I also have data on the count of inventory which was left
in stock at the end of the year. In order to properly value this inventory I
need a way to show how much of each purchase is still in stock. This means
that the quantities of each purchase must be sequentially subtracted from
the stock left in inventory until there is no more stock to account for.

I have created a query which accounts for all the purchased items and will
calculate the extended value for each item but I haven't found a way to keep
a cumulative total of how much of the count of stock in inventory is
remaining as each individual purchase is deducted from that count.

I do have the inventory in the query sorting for each individual item along
with invoice dates and invoice numbers which will allow me to process the
data in the correct order to meet my need to output a First In First Out
(FIFO) analysis.

I have tried writing a VBA function either with a module level variable or a
static variable which I thought might have worked but Access doesn't
recognize it as an "Aggregate Function".

Any Ideas? Thank you very much.

A T
 
M

MGFoster

A. T. wrote:

I have created a query which accounts for all the purchased items and will
calculate the extended value for each item but I haven't found a way to keep
a cumulative total of how much of the count of stock in inventory is
remaining as each individual purchase is deducted from that count.
< SNIP >

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I don't know if this will help but there is an article in the MS KB:

http://support.microsoft.com:80/support/kb/articles/q138/9/11.asp

that shows how to get a cumulative total in a query.

- --
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQFEXToechKqOuFEgEQJxvgCghWOvmdjhG4wyPw4ALA1aMvg9U/oAn3bb
TxiaiqQHe0hr0jAntjcHY3wt
=JzLC
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top