qurn
Registered User.
- Local time
- Today, 12:24
- Joined
- May 2, 2005
- Messages
- 63
I'm trying to get some equations to work for a database involving ski lifts.If I can get it to work right it should give me the resulting tension on the lift.
I have a two combo boxes that contains two values, counterweight and Hydralic, the other one has the values extends cylinder and retracts cylinder.
if counterweight is selected it should calulate the value with the equation
([L/bore]*[w/Rod]*[D/quan]*145+[additionalweight])/[counterweightparts]
If Hydralic and extends cylinder is selected it should calculate it with
(3.14*[L/bore]^2)/(4*[D/quan]*[additionalweight])
If Hydralic and retracts cylinder is selected it should calculate it with
(3.14*([L/bore]^2-[W/Rod]^2))/(4*[D/quan]*[additionalweight])
I'm trying to get this to work using IIF statements in a query but I can't seem to get it right.
I hope I was clear enough in my explanation. If any body know how to get this to work or nows a better way of going about it please help, Thanks.
I have a two combo boxes that contains two values, counterweight and Hydralic, the other one has the values extends cylinder and retracts cylinder.
if counterweight is selected it should calulate the value with the equation
([L/bore]*[w/Rod]*[D/quan]*145+[additionalweight])/[counterweightparts]
If Hydralic and extends cylinder is selected it should calculate it with
(3.14*[L/bore]^2)/(4*[D/quan]*[additionalweight])
If Hydralic and retracts cylinder is selected it should calculate it with
(3.14*([L/bore]^2-[W/Rod]^2))/(4*[D/quan]*[additionalweight])
I'm trying to get this to work using IIF statements in a query but I can't seem to get it right.
I hope I was clear enough in my explanation. If any body know how to get this to work or nows a better way of going about it please help, Thanks.