Clive Beaton
asked on
can't find the form frm012Menu' referred to in a macro expression or VB code.
The code attached works for a form called frm010Login but not for a form called from102Menu (or quite a lot of other forms).
Any ideas.
Thanks in advance
Any ideas.
Thanks in advance
Public Function Test3()
Dim frm As Form, ctl As Control, s As String
Set frm = Forms!frm012Menu
For Each ctl In frm
Debug.Print ctl.Name
Next ctl
End Function
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, Guys.
CRB
CRB
set frm = forms("frm012Menu")