Returning the Yes/No value in a report

canjfn

Registered User.
Local time
Today, 21:35
Joined
Apr 24, 2001
Messages
28
I have a table with a number of yes/no fields; this table is used as a source for a query,

Now when writing a report based on this query, the respective fields return -1 for where I have said Yes and 0 for No, how can I make the fields on the report say “Yes” or “No”

I was trying to do something like this (Text88 being an unbound field)
If Me.[Cyclic_Loading] = "0" Then
Me.Text88 = "NO"
Else
Me.Text88 = "YES"
End If
when opening the report but it does not work

It says, “ you have entered an invalid expression” and has highlighted this line
If Me.[Cyclic_Loading] = "0" Then

Thank you
 
Use this in the query

Code:
IIf([FieldName] = -1, "Yes", "No")

Only text is put in quotes " ", numbers are not

Col
 
Thank you, now works fine
 
You could also just have set the display format to your textbox to Yes/No
 

Users who are viewing this thread

Back
Top Bottom