R
Rick Brandt
johnb said:Hi Guys,
I can change a controls visible property at runtime using a cmd button,
but I can't seem to save the new setting when I close the Form and reopen
it. The following code works fine apart from persisting the changes
For Each ctl In frm.Controls
If ctl.ControlType = acLabel And ctl.Name = Me.GroundInFocus.Value
Then
str = "I-" & Mid(ctl.Name, 1, 11)
If Me(str).Visible = True Then
Me(str).Visible = False
Me(str).Properties("Visible").Value = False
Else
Me(str).Visible = True
Me(str).Properties("Visible").Value = True
End If
End If
Next ctl
Set ctl = Nothing
Any suggestion?
Changes made to a form or report in normal view via code are not supposed to
be persisted. For that you open the form in design view.