C cartleman Registered User. Local time Today, 06:04 Joined Dec 4, 2005 Messages 21 Dec 29, 2005 #1 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.
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.
supercharge Registered User. Local time Today, 06:04 Joined Jun 10, 2005 Messages 215 Dec 29, 2005 #2 In your button's onclick sub, change your subform's SourceObject to whatever subform's name. Code: subfrmMenu.SourceObject = "subform's name goes here"
In your button's onclick sub, change your subform's SourceObject to whatever subform's name. Code: subfrmMenu.SourceObject = "subform's name goes here"
C CEH Curtis Local time Today, 08:04 Joined Oct 22, 2004 Messages 1,187 Dec 29, 2005 #3 Subforms also have a "visible" property. Set it to No and on the OnClick event of your command button "subform.visible = true"
Subforms also have a "visible" property. Set it to No and on the OnClick event of your command button "subform.visible = true"
C cartleman Registered User. Local time Today, 06:04 Joined Dec 4, 2005 Messages 21 Dec 29, 2005 #4 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" Click to expand... 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...
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" Click to expand... 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...
supercharge Registered User. Local time Today, 06:04 Joined Jun 10, 2005 Messages 215 Dec 29, 2005 #5 Here you go, a small sample, created just for you. Attachments SubForm.zip SubForm.zip 11.6 KB · Views: 140
C cartleman Registered User. Local time Today, 06:04 Joined Dec 4, 2005 Messages 21 Dec 29, 2005 #6 I need parameter queries - take a look. Attachments My SubForm.zip My SubForm.zip 23.1 KB · Views: 115
supercharge Registered User. Local time Today, 06:04 Joined Jun 10, 2005 Messages 215 Dec 29, 2005 #7 Ok, now try it. Attachments My SubForm.zip My SubForm.zip 13.9 KB · Views: 119
C cartleman Registered User. Local time Today, 06:04 Joined Dec 4, 2005 Messages 21 Dec 29, 2005 #8 Ah you beauty. So so so simple. Shame the result query thing is so ugly and grey I cant change this can I...
Ah you beauty. So so so simple. Shame the result query thing is so ugly and grey I cant change this can I...
alastair69 Registered User. Local time Today, 06:04 Joined Dec 21, 2004 Messages 562 Dec 29, 2005 #9 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... Click to expand... 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
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... Click to expand... 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
supercharge Registered User. Local time Today, 06:04 Joined Jun 10, 2005 Messages 215 Dec 29, 2005 #10 You mean you didn't know which attachment was the most updated one? Thanks for sharing.
C cartleman Registered User. Local time Today, 06:04 Joined Dec 4, 2005 Messages 21 Dec 29, 2005 #11 Eh?... Anyway, excellent. Exactly what I was after.