0

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.

1
  • 3
    In MS-Access already have IIf ( expr , truepart , falsepart). Article link Commented Aug 28, 2019 at 2:24

1 Answer 1

1

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])
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.

Ask question

Explore related questions

See similar questions with these tags.