Need Help

Tragac011

Registered User.
Local time
Today, 01:58
Joined
Mar 8, 2014
Messages
56
I just beging learning access and I have some problem with IIF function

IIf[Broj dana]<=20>=15,5,0,IIF[Broj dana]>=20,10,0))

I need something like this

If someone can help , please
 
IIf([Broj dana]<=20 and [Broj dana] >=15,5,IIF([Broj dana]>=20,10,0))

You have 2 results for [Broj dana] =20????????
 
IIf([Broj dana]<=20 and [Broj dana] >=15,5,IIF([Broj dana]>=20,10,0))

You have 2 results for [Broj dana] =20????????


Yes Its depend . That is difference between two dates

If tthat number is betweeen 15-20 then I need 5
If greater than 20 i need 10
 
Here you go:

Code:
IIf([Broj dana] > 20, 10, IIf([Broj dana] >= 15, 5, 0))

That is the formula version of this:

Yes Its depend . That is difference between two dates

If tthat number is betweeen 15-20 then I need 5
If greater than 20 i need 10
 
Originally Posted by Tragac011
IIf[Broj dana]<=20>=15,5,0,IIF[Broj dana]>=20,10,0))

Try this:
IIf([Broj dana] Between 15 And 20,"5", IIf([Broj dana] >=20,"10","0"))

Note: I do not know how to code IIf([Broj dana] Between 20 And "Infinity"
 

Users who are viewing this thread

Back
Top Bottom