Referencing A Form

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I have this on a command button on the PadNumber form
I want this to happen on the Employees Form but I can't get the syntax.

Dim Ctl as Controls
For Each Ctl In Forms!Employees!Controls
If Forms!Employees!Ctl.Tag = "2" Then
Forms!Employees!Ctl.Visible = True
End If
Next Ctl

Any help appreciated.
Thanks
DS
 
DS,

The only thing I can see wrong here is the s on the end of Controls. Try...
Dim ctl As Control
 
Back
Top