B
blobb
Hi. I am attempting to show a label and textbox based on a checkbox in a
report.
The report is based on a SQL query joining two tables. The checkbox field
is included in the query. Currently in the properties, I have the label and
textbox .visible = false. I would like to set the label and textbox to
visible when the checkbox response = Yes.
I tried the OnLoad event of the form
Private Sub Report_Load()
If Checkbox = "Yes" Then
Label.Visible = True
Textbox.Visible = True
End If
End Sub
This didn't work. Could someone help? I am unable to define the event for
the textbox and label directly because this is a report and not a form.
thanks.
report.
The report is based on a SQL query joining two tables. The checkbox field
is included in the query. Currently in the properties, I have the label and
textbox .visible = false. I would like to set the label and textbox to
visible when the checkbox response = Yes.
I tried the OnLoad event of the form
Private Sub Report_Load()
If Checkbox = "Yes" Then
Label.Visible = True
Textbox.Visible = True
End If
End Sub
This didn't work. Could someone help? I am unable to define the event for
the textbox and label directly because this is a report and not a form.
thanks.