Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't use IF command to change text in a box?! 1

Status
Not open for further replies.

Stevehewitt

IS-IT--Management
Jun 7, 2001
2,075
GB
Hey,

Sorry about the title - not too descriptive.

I have a report, where each record has a Yes/No field. Default is No. (Its a 'Finished Job' field with a tick box)

On the report, I don't want it to show a tick box, I need it to show a Yes or a No.
I tried the following but i'm getting nothing:

Code:
Private Sub Report_Activate()
If Me.Done.Value = "0" Then
Me.DoneView.Value = No
Else
Me.DoneView.Value = Yes
Else
End If
End Sub

Anyone tell me where I am going wrong?

Thanks,


Steve.
 
I think you need to put the following in the control source of a text box call doneview

Code:
=IIf([done]=0,"No","Yes")
 
Hey,

Thanks. That worked a treat!!! :)

Thanks again,


Steve.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top