IIF statement evaluating for an integer

D

Darrel

I need to put this in Access query language. Any help is greatly appreciated.

IIf ( Left ( [INV-DESC] , 3)/5 = an integer , «truepart», «falsepart»)

(the left 3 digits of [INV-DESC] will be a whole number between 125 & 500)
 
C

Clifford Bass

Hi Darrel,

Try: IIf(CInt(Left([INV-DESC], 3)) mod 5 = 0, «truepart», «falsepart»)

Clifford Bass
 
D

Darrel

Works like a charm! I'll have to research CInt & mod to progress my
knowledge, but you sure saved me some time for now.

Clifford Bass said:
Hi Darrel,

Try: IIf(CInt(Left([INV-DESC], 3)) mod 5 = 0, «truepart», «falsepart»)

Clifford Bass

Darrel said:
I need to put this in Access query language. Any help is greatly appreciated.

IIf ( Left ( [INV-DESC] , 3)/5 = an integer , «truepart», «falsepart»)

(the left 3 digits of [INV-DESC] will be a whole number between 125 & 500)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top