Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
How to use excel function in access db? We have a policy numbers I would like to know if the policy number repeats return 0 otherwise 1
In excel: =IF(A2=A1),1,0
How can I write this formula in access?
Please appreciate your help.
Thanks.
MS-Access
IIf ( expr , truepart , falsepart)
In Access VBA you would use a Boolean (True/False)
Match = (Value2 = Value1)
If you insist, that Match must be an Integer, this will do:
Match = Abs(Value2 = Value1)
In a query it would be like:
Match: Abs([Field2]=[Field1])
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
MS-Accessalready haveIIf ( expr , truepart , falsepart). Article link