Hi
If it were me I would use some form of vba (no sure how you are getting the
info some can't help with the event you should use - are users inputting
data, are you importing this from somewhere other programme, etc)
But this said it's not too hard.
An IIf will give you true or false.
ie. IIf ([SomeThing]>1, "Yes it's more than 1", "No it's not more than 1")
In your case you are doing calculations in the IIF
IIf ([SomeThing]+[Something]>1, "Yes they are more than 1", "No they are
more than 1")
But you are also doing "sub" calculations (like in excell)
IIf ((([SomeThing]+[Something])*123)>1, "Yes the result is more than 1", "No
the result is not more than 1")
You are also you are also wanting to alter the result if the answer is
neggative (in this case if the answer is not equal to 1
IIf ((([SomeThing]+[Something])*123)>1, "Yes the result is more than 1", "No
the result is not more than 1")
IIf ((((([SomeThing]+[Something])*123)>1,"Yes the result is more than 1",
IIf ([SomeOtherCalculation]<>123, "Yes it's not more or less than 123, You
would/could enter something else here) )
Basically you need to "step through" the calculations. Do the "very" basic
stuff than add (a little at a time) the other "stuff".
I don't understand what you're trying to do so can't really help with the
specifics ie. Why are you using (#/(20/30)) why not just use /.666 ok it's
not as acurate but it will give you a result that is as near as you will get
(depending on the format).
Have a look at this link (then search google if you're still looking for
more detail)
http://msdn2.microsoft.com/en-us/library/aa445024.aspx
Good luck
--
Wayne
Manchester, England.
Chartswife said:
Although I wish I were, I am not proficient in visual basics and the rest is
simply over my head at this point. But I must say that I'm finding myself
more interested in learning more than this class is teaching me. However, I
want to thank you for the response and I can't wait until I understand
exactly what it means
Dennis said:
Why not just CODE IT IN VBA??? You can perform the steps linearly using DIM'd
variables, in as few or as many steps as needed to do it right.
Once the prerequisite other fields are populated, just run the calculation
as a SUB.
:
Im running vista, microsoft office pro 2007
I'm trying to write a workable formula in an unbound text in form design.
It's a monster formula.
Their are 4 components:
comp/att*100-30/20
yds/att-3*.25
td/att*20
2.375-int/att*25
Each one of the answers for these 4 components must be checked , if greater
than 2.375 then set to 2.375 and if less than 0 then set to 0
and finally, all added together, multiplied by 100 and divided by 6
This is what I have but I get Syntax Error. I'm very new to access, so
please keep this in mind, thank you.
=PasserRating

[comp]/[Att]*100-30/20+iif(>2.375=2.375),iif(<0=0)+[yds]/[att]-3*.25+iff(>2.375=2.375),iif(<0=0)+[td]/[att]*20+iif(>2.375=2.375),iif(<0=0)+(2.375-[int]/[att]*25),iif(>2.375=2.375),iif(<0=0)*100/6)