Subform data dependant on particular Main Form

lorraine

Registered User.
Local time
Today, 22:58
Joined
Jul 25, 2000
Messages
27
I have 4 sub forms (frmPartC1, 2 etc) which basically hold the same data, all the fields are the same but default values are different depending upon which Main form opens the subform. Is there anyway I can write some code that would set a default value in the subform dependant upon which Mainform opened it, allowing me to have just 1 subform
Thanks in advance
Lorraine
 
You can use the OpenArgs property to pass a value from the main form to the subform so the subform knows which mainform opened it.
 

Users who are viewing this thread

Back
Top Bottom