Hi All,
I been trying to figure out how to get a formula that works in Excel and Access Forms to work in an Access Query.
I’ve attached a graphic showing what I’m able to do in Excel and also attached the sample access Db that shows it working in a Form.
In short, I looking to get the average weight (+/- 15%) per item within a specific class. Sounds simple doesn’t it….. But I’ve been working on this for days with no success.
These are the working formulas:
Excel(see pic): =AVERAGEIFS($C$3:$C$26,$A$3:$A$26,"="&A7,$C$3:$C$26,">="&C7-(C7*$D$1),$C$3:$C$26,"<="&C7+(C7*$D$1))
Access Form: =DAvg("[Weight]","[Table1]","[Class] = [txtClass] AND [Weight]>=([txtWeight]*(1-.15)) AND [Weight]<=([txtWeight]*(1+.15))")
Your help and thoughts would be greatly appreciated!
I been trying to figure out how to get a formula that works in Excel and Access Forms to work in an Access Query.
I’ve attached a graphic showing what I’m able to do in Excel and also attached the sample access Db that shows it working in a Form.
In short, I looking to get the average weight (+/- 15%) per item within a specific class. Sounds simple doesn’t it….. But I’ve been working on this for days with no success.
These are the working formulas:
Excel(see pic): =AVERAGEIFS($C$3:$C$26,$A$3:$A$26,"="&A7,$C$3:$C$26,">="&C7-(C7*$D$1),$C$3:$C$26,"<="&C7+(C7*$D$1))
Access Form: =DAvg("[Weight]","[Table1]","[Class] = [txtClass] AND [Weight]>=([txtWeight]*(1-.15)) AND [Weight]<=([txtWeight]*(1+.15))")
Your help and thoughts would be greatly appreciated!