I have an anomally happening in a query.
From the fields:
Total Hours
Total Cost
Week 1
Week 2
Week 3
..
Week n
I am doing a simple calculation such that (this converts a cost into hours) - Before you think it is this is not the same as my other thread
Expr: ([Week n]/[Total Cost])*[Total Hours]
When I enter the expression as such into each weekly field it works fine.
However, if I try and split the equation in two, in order to create another field of Hourly rate I get completely wrong answers. The other method is.
Expr1: [Total Cost]/[Total Hours]
Expr2: [Week n]/[Expr1]
The two are mathematically equavilent and Excel doesn't have a problem with it (I used Excel to check I wasn't just being a muppet), so why does it give me wrong answers in Access?
From the fields:
Total Hours
Total Cost
Week 1
Week 2
Week 3
..
Week n
I am doing a simple calculation such that (this converts a cost into hours) - Before you think it is this is not the same as my other thread
Expr: ([Week n]/[Total Cost])*[Total Hours]
When I enter the expression as such into each weekly field it works fine.
However, if I try and split the equation in two, in order to create another field of Hourly rate I get completely wrong answers. The other method is.
Expr1: [Total Cost]/[Total Hours]
Expr2: [Week n]/[Expr1]
The two are mathematically equavilent and Excel doesn't have a problem with it (I used Excel to check I wasn't just being a muppet), so why does it give me wrong answers in Access?