StellaIndigo
IS-IT--Management
Hi
I have a db with 250,000+ stock records. Each record has amoung other fields the usage for each month, jan, feb .. dec.
If I ran the report at any time I want to sum the last 3 months. So, I run the report in Apr, the sum is (jan + feb + mar), if I run it in May it's (feb + mar + apr).
I thought I might be able to write a quick VBA function but I don't know how to reference the current record from the query within the module.
Anyone got any ideas or alternative solutions?
thanks in advance
There are 10 types of people in the world. Those that understand binary and those that don't.
I have a db with 250,000+ stock records. Each record has amoung other fields the usage for each month, jan, feb .. dec.
If I ran the report at any time I want to sum the last 3 months. So, I run the report in Apr, the sum is (jan + feb + mar), if I run it in May it's (feb + mar + apr).
I thought I might be able to write a quick VBA function but I don't know how to reference the current record from the query within the module.
Anyone got any ideas or alternative solutions?
thanks in advance
There are 10 types of people in the world. Those that understand binary and those that don't.