Convert numerical value to Yes-No

jereece

Registered User.
Local time
Today, 22:09
Joined
Dec 11, 2001
Messages
300
I have a report that is based on a query using Linked Tables to an SQL database. One of my fields [MR] returns -1 for Yes and 0 for No. I want my report to show Yes and No not -1 and 0. How can I make the report do this?

Thanks,
Jim
 
Try

=IIf([MR] = True, "Yes", "No")
 
Just to clarify, would this go into the Control Source field on the Property Sheet for the field?
 
It would be the control source of a textbox on the report. You could also create a calculated field in the query underlying the report:

NewFieldName: IIf([MR] = True, "Yes", "No")

and then just have a textbox with NewFieldName as the control source.
 

Users who are viewing this thread

Back
Top Bottom