boblovesyousomuch
Programmer
Hello everytime I try and run a command that assigns a value I get:
Run-time error: 2448
'You can't assign a value to this object, etc etc.'
I am sure you have seen this many times but I can't figure out what is wrong. My form is not read only.
I have included the code from one sub below.
Private Sub OptionDates_AfterUpdate()
Dim crtl As Control
Set crtl = Me![cboEndDate]
If Nz(Me![OptionDates], 1) = 2 Then
crtl.Visible = True
LabelTo.Visible = True
crtl.Value = Null
Else
crtl.Visible = False
LabelTo.Visible = False
crtl.Value = Null
End If
End Sub
Anyone any ideas, I doubt it is the code as I have seen the exact code work before?!
Thanks
Carl
Run-time error: 2448
'You can't assign a value to this object, etc etc.'
I am sure you have seen this many times but I can't figure out what is wrong. My form is not read only.
I have included the code from one sub below.
Private Sub OptionDates_AfterUpdate()
Dim crtl As Control
Set crtl = Me![cboEndDate]
If Nz(Me![OptionDates], 1) = 2 Then
crtl.Visible = True
LabelTo.Visible = True
crtl.Value = Null
Else
crtl.Visible = False
LabelTo.Visible = False
crtl.Value = Null
End If
End Sub
Anyone any ideas, I doubt it is the code as I have seen the exact code work before?!
Thanks
Carl