Subform Will Not Update Itself When Control Source is Changed Programically
When I change a subform’s Control Source i cannot get the subform to update itself with information according to its Link Child Fields and Link Master Fields.
My application is a contact manager. Here’s a schematic of what i have done:
Contact ID (continuous form)
|
|
Detail Subform (single form)—–(cmd buttons) Adresses | Phone Numbers
Explanation, the ContactID is used to sync up the Detail subform to show only a specific contact’s info. The cmd buttons will change the Control Source of the Detail subform so that different forms will be displayed.
This is how i am syncing the ContactID continuous form with the Detail subform: I use an unbound textbox that gets updated by the ContactID continuous form; the unbound textbox is then the Link Master Field for the Detail subform.
Does anybody have suggestions how I might get this changing subform to update itself? I have tried programically re-defining the Link Child Fields and Link Master Fields after changing the Control Source, as well as to Refresh and Requery the changed subform- no deal.
Thank you!
–llyal