Question Method or data member not found (1 Viewer)

Stemdriller

Registered User.
Local time
Today, 07:24
Joined
May 29, 2008
Messages
187
Hi

I have a form that has two sub forms. The first subform is not visible until a button is clicked. The second sub form also becomes visible when a button is clicked within the 1st sub form.

I am using Me.frmAddContact.Visible = True

All I get is Compile Error:
Method or data member not found.
It looks like is simply cannot find the subform.

Any ideas?
 

Stemdriller

Registered User.
Local time
Today, 07:24
Joined
May 29, 2008
Messages
187
The subform visible

Main form is called frmAddClub, 1st sub form is frmAddContact, when the contact is input and saved another button is trying to make the 2nd sub form (frmEnquiresViaAddClub) open. Both sub forms sit on the main form (frmAddClub)
 

Stemdriller

Registered User.
Local time
Today, 07:24
Joined
May 29, 2008
Messages
187
Just cracked it using

Forms!frmAddClub.frmEnquiresViaAddClub.Visible = True

Thanks for pointing me in the right direction.
 

Users who are viewing this thread

Top Bottom