If statements in text boxes on reports??

Mermogoat

Registered User.
Local time
Today, 14:47
Joined
Dec 1, 2002
Messages
36
In my query that is the Report's RecordSource, I have a field of the Yes/No type that is connected to a checkbox on a form. On my report, if I have it display that field, all i get is a 0 or -1 for True(yes)/false(no). Is there a way to have, as a text field's ControlSource, some kind of If/Then statement like

If [Complete]=0 Then Value="Yes" ElseIf [Complete]=-1 Then Value="No" ??

Thanks
 
Mermogoat said:
If [Complete]=0 Then Value="Yes" ElseIf [Complete]=-1 Then Value="No"

Also, use an IIf() statement to tidy it.

IIf([Complete] = 0, "Yes", "No")
 

Users who are viewing this thread

Back
Top Bottom