P
pib311 via AccessMonster.com
Hello all,
Thanks in advance.
I am using the following code to run through all forms in a field and hide
values based on a combo box.
For Each ctl In Me.Controls
If (ctl.ControlType = acTextBox Or ctl.ControlType = acComboBox
Or ctl.ControlType = acLabel Or ctl.ControlType = acListBox) And _
(ctl.Tag Like "*attribute*") = True Then
ctl.Visible = False
ElseIf (ctl.ControlType = acTextBox Or ctl.ControlType = acComboBox
Or ctl.ControlType = acLabel Or ctl.ControlType = acListBox) And _
(ctl.Tag Like "*project*") = True Then
ctl.Visible = True
End If
Next ctl
I want to make all fields null that will be forced to be invisible, basically
clearing any values they may have entered. I have tried ctl.value = false
with no luck, and set ctl = Null. What is the easiest way to accomplish
clearing out any existing values?
Thanks!
Thanks in advance.
I am using the following code to run through all forms in a field and hide
values based on a combo box.
For Each ctl In Me.Controls
If (ctl.ControlType = acTextBox Or ctl.ControlType = acComboBox
Or ctl.ControlType = acLabel Or ctl.ControlType = acListBox) And _
(ctl.Tag Like "*attribute*") = True Then
ctl.Visible = False
ElseIf (ctl.ControlType = acTextBox Or ctl.ControlType = acComboBox
Or ctl.ControlType = acLabel Or ctl.ControlType = acListBox) And _
(ctl.Tag Like "*project*") = True Then
ctl.Visible = True
End If
Next ctl
I want to make all fields null that will be forced to be invisible, basically
clearing any values they may have entered. I have tried ctl.value = false
with no luck, and set ctl = Null. What is the easiest way to accomplish
clearing out any existing values?
Thanks!