S
SAC
I'm attempting to clear the controls on a subform manually. (They are not
linked).
I get an error that I have an invalid reference to the property
From/Report - error 2455
Here's what I've got:
If Me.NewRecord Then
Dim cntrl As Access.Control
'Clear controls on subform
For Each cntrl In
Forms![frmBookingShows]![frmBookingShowsFacilities].Controls
If cntrl.ControlType = acTextBox Or cntrl.ControlType =
acComboBox Or cntrl.ControlType = acCheckBox Or cntrl.ControlType =
acListBox Then
cntrl.Value = Null
End If
Next cntrl
End If
What am I doing incorrectly?
Thanks.
Appreciate your help!
linked).
I get an error that I have an invalid reference to the property
From/Report - error 2455
Here's what I've got:
If Me.NewRecord Then
Dim cntrl As Access.Control
'Clear controls on subform
For Each cntrl In
Forms![frmBookingShows]![frmBookingShowsFacilities].Controls
If cntrl.ControlType = acTextBox Or cntrl.ControlType =
acComboBox Or cntrl.ControlType = acCheckBox Or cntrl.ControlType =
acListBox Then
cntrl.Value = Null
End If
Next cntrl
End If
What am I doing incorrectly?
Thanks.
Appreciate your help!