Sep 13, 2002 #1 sabavno Programmer Jul 25, 2002 381 CA Hi I have this code Dim frm As Form_AddRecord1 Dim x As TextBox For Each x In frm If x.Visible = False Then x.Visible = True End If Next x And I get an error "Object required" Why is that? Please help.
Hi I have this code Dim frm As Form_AddRecord1 Dim x As TextBox For Each x In frm If x.Visible = False Then x.Visible = True End If Next x And I get an error "Object required" Why is that? Please help.
Sep 13, 2002 #2 SBendBuckeye Programmer May 22, 2002 2,166 US Dim ctl As Control For Each ctl In Form_AddRecord1 If Not ctl.Visible Then ctl.Visible = Not ctl.Visible End If Next ctl Good Luck! Upvote 0 Downvote
Dim ctl As Control For Each ctl In Form_AddRecord1 If Not ctl.Visible Then ctl.Visible = Not ctl.Visible End If Next ctl Good Luck!