Hi,
I have a weird issue happening and I cant get aound it because it doesnt make sense.
For the sake of simplicity. I have a report with one field (Date type). Also I have to fields on top of each other one is a Label and the other is a textfield
My intention is if the Date field has a date then make the textfield invisible and the label field visible and vice versa.
It seemed straight forward...........I dont even get any errors but nothing works
What I did is under the report OnCurrent Event and put the below. The textfield (visible = No) and Labelfield (visible=No). dateresponded (date/Short date)
I dont see what is wrong. I tried using the On Activate and On Load events command but I get an error 2427.
I also tried dateresponded.value and dateresponded.text
Any feedback will be greatly appreciated
I have a weird issue happening and I cant get aound it because it doesnt make sense.
For the sake of simplicity. I have a report with one field (Date type). Also I have to fields on top of each other one is a Label and the other is a textfield
My intention is if the Date field has a date then make the textfield invisible and the label field visible and vice versa.
It seemed straight forward...........I dont even get any errors but nothing works
What I did is under the report OnCurrent Event and put the below. The textfield (visible = No) and Labelfield (visible=No). dateresponded (date/Short date)
Code:
Private Sub Report_Current()
If IsNull(Me![dateresponded]) Or (Me![dateresponded]) = "" Then
ME.Labelfield.Visible = True
Me.Textfield.Visible = False
Elseif (Me![dateresponded]) <> "" Then
ME.Labelfield.Visible = False
Me.Textfield.Visible = True
End If
End Sub
I dont see what is wrong. I tried using the On Activate and On Load events command but I get an error 2427.
I also tried dateresponded.value and dateresponded.text
Any feedback will be greatly appreciated