Check if the Results of two fields match?

Number11

Member
Local time
Today, 21:56
Joined
Jan 29, 2020
Messages
623
what's the best way to say if two fields in query match

[ID]=[SID],Yes,No ?
 
FieldName: ID=SID
That will work and give you either -1 or 0. If you prefer "words" as the results, you can use the IIf() function. For example:
Code:
AreTheyEqual: IIf(ID=SID, "Yes", "No")
Hope that helps...
 
sure - this in a query, same format to use in a form or report
image_2022-02-08_012132.png

or add a bit of colour
image_2022-02-08_012324.png


result
image_2022-02-08_012424.png
 

Users who are viewing this thread

Back
Top Bottom