Coverting Excel If statement to Access

Nancyade

New member
Local time
Today, 12:19
Joined
May 25, 2011
Messages
4

I need help to convert the below excel if statement to access.
=IF(AND(H6>M6),H6-M6)

I did the convertion but it is not working properly, please find below my convertion

Awaiting Outcome: IIf([Number New referrals]>[Total Outcome],[Number new referrals]-[Total Outcome])
 
Looks good. What are your input values, result and expected result?
 
The IIf statement in Access has three arguments;

IIf(expression, true part, false part)

What result do you want if [Number New Referrals]>[Total Outcome] is not true?
 

I need help to convert the below excel if statement to access.
=IF(AND(H6>M6),H6-M6)

I did the convertion but it is not working properly, please find below my convertion

Awaiting Outcome: IIf([Number New referrals]>[Total Outcome],[Number new referrals]-[Total Outcome])

Why the AND ? and if not true you end up with FALSE in the cell, is that what you wanted, I doubt that that is the correct Excel formula

Brian
 

Users who are viewing this thread

Back
Top Bottom