Hi All,
I have a form where several filter options are presented to the user to filter a report (Access 2003). I have two listboxes that depending on the combination a calculation is run. Right now, I have the calculation being performed in a query, but now we have added other elements to it and it is a little more difficult.
If the user selects the combination of AHSO, HSOIN, OR HIGCA with LETS then the calculation is result*duration/15
If the user selects AHSO and LEP OR HIGCA and LVT the calculation is result*duration/480
However, if the user selects HSOIN and LER the calculation is result*duration/600
I hope it makes sense. Would this be better to put in a VBA function? Not sure. How would I start it and would it be a calculated control on the report?
thanks in advance,
MV
I have a form where several filter options are presented to the user to filter a report (Access 2003). I have two listboxes that depending on the combination a calculation is run. Right now, I have the calculation being performed in a query, but now we have added other elements to it and it is a little more difficult.
If the user selects the combination of AHSO, HSOIN, OR HIGCA with LETS then the calculation is result*duration/15
If the user selects AHSO and LEP OR HIGCA and LVT the calculation is result*duration/480
However, if the user selects HSOIN and LER the calculation is result*duration/600
I hope it makes sense. Would this be better to put in a VBA function? Not sure. How would I start it and would it be a calculated control on the report?
thanks in advance,
MV