Changing sub-forms on the same form?

cartleman

Registered User.
Local time
Today, 09:06
Joined
Dec 4, 2005
Messages
21
Is it possible to change which subform is displayed by pressing a button, on the same form?

Each subform is based on a parameter query if that has relavence.
 
In your button's onclick sub, change your subform's SourceObject to whatever subform's name.
Code:
    subfrmMenu.SourceObject = "subform's name goes here"
 
Subforms also have a "visible" property. Set it to No and on the OnClick event of your command button "subform.visible = true"
 
supercharge said:
In your button's onclick sub, change your subform's SourceObject to whatever subform's name.
Code:
    subfrmMenu.SourceObject = "subform's name goes here"

I don't quite understand. I'm a newbie to VB, sorry!

The wizard make a form open "on click", but I need a subform on the same form, which it can't do...
 
Ah you beauty. So so so simple.

Shame the result query thing is so ugly and grey I cant change this can I...
 
cartleman said:
Ah you beauty. So so so simple.

Shame the result query thing is so ugly and grey I cant change this can I...


Have a mess about with the forms attached is an updated copy

Click here http://www.braeburn1.demon.co.uk/Database/MySubForm.zip Here to help
 
You mean you didn't know which attachment was the most updated one?

Thanks for sharing.
 

Users who are viewing this thread

Back
Top Bottom