display subform based on selection

Kempes

Registered User.
Local time
Today, 13:22
Joined
Oct 7, 2004
Messages
327
A tricky one this. Searched for answer but cannot find.

Acc 2003.

I have a main menu with 2 subforms.

In the on load event it sets the source object of the first subform, which displays a list of options (menu Style).

When choosing an option from SubForm1, I want SubForm2 to display the form I have coded in.

I currently have within subform 1 in the on click event the following.

Form_MainMenu.subform1.sourceobject = "formtodisplayinsubform2"

When running this from the main menu, nothing at all happens.

When opening just the subform 1 on it's own and clicking the option, it merely opens the main menu form.

Can anyone see what I am missing?

Thanks in advance
 
Scratch that.

Stupid mistake on my behalf.

It would help if I set the visibility of the sub form to true wouldn't it!!!!
 
LoL it probably would :)
 

Users who are viewing this thread

Back
Top Bottom