T Tragac011 Registered User. Local time Today, 01:58 Joined Mar 8, 2014 Messages 56 Mar 8, 2014 #1 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
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
jdraw Super Moderator Staff member Local time Today, 04:58 Joined Jan 23, 2006 Messages 15,581 Mar 8, 2014 #2 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????????
T Tragac011 Registered User. Local time Today, 01:58 Joined Mar 8, 2014 Messages 56 Mar 8, 2014 #3 jdraw said: IIf([Broj dana]<=20 and [Broj dana] >=15,5,IIF([Broj dana]>=20,10,0)) You have 2 results for [Broj dana] =20???????? Click to expand... 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
jdraw said: IIf([Broj dana]<=20 and [Broj dana] >=15,5,IIF([Broj dana]>=20,10,0)) You have 2 results for [Broj dana] =20???????? Click to expand... 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
Frothingslosh Premier Pale Stale Ale Local time Today, 04:58 Joined Oct 17, 2012 Messages 3,276 Mar 9, 2014 #4 Here you go: Code: IIf([Broj dana] > 20, 10, IIf([Broj dana] >= 15, 5, 0)) That is the formula version of this: Tragac011 said: 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 Click to expand...
Here you go: Code: IIf([Broj dana] > 20, 10, IIf([Broj dana] >= 15, 5, 0)) That is the formula version of this: Tragac011 said: 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 Click to expand...
T Tragac011 Registered User. Local time Today, 01:58 Joined Mar 8, 2014 Messages 56 Mar 9, 2014 #5 Frothingslosh said: Here you go: Code: IIf([Broj dana] > 20, 10, IIf([Broj dana] >= 15, 5, 0)) That is the formula version of this: Click to expand... Thank You very much
Frothingslosh said: Here you go: Code: IIf([Broj dana] > 20, 10, IIf([Broj dana] >= 15, 5, 0)) That is the formula version of this: Click to expand... Thank You very much
K Kitoned Registered User. Local time Today, 01:58 Joined Mar 9, 2014 Messages 10 Mar 9, 2014 #6 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"
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"
Frothingslosh Premier Pale Stale Ale Local time Today, 04:58 Joined Oct 17, 2012 Messages 3,276 Mar 9, 2014 #7 Kitoned said: Note: I do not know how to code IIf([Broj dana] Between 20 And "Infinity" Click to expand... That's just another way of saying 'greater than'.
Kitoned said: Note: I do not know how to code IIf([Broj dana] Between 20 And "Infinity" Click to expand... That's just another way of saying 'greater than'.