S
Steve
Greetings:
I have 2 different subforms related to a master form. I display these forms
one at a time as I need them by changing the source object for the subform
control (called fsubOpen) on the Master form.
Forms!frmMaster.fsubOpen.SourceObject = strFormName
In most cases, I only need to open the subform without regard to the record
being displayed. However, I recently came across a situation where I wanted
the record id displayed in a text box on subform1 to determine the record
displayed on subform2. When the user clicks a command button, I would like
subform1 to be replaced by subform2 as the source object for fsubopen and to
display the record with the displayed record ID in the textbox txtRecordID.
If this were a standard openForm situation, one could easily apply the
stLinkCriteria, but i don't think that will work for this. Any ideas would be
welcome.
I have 2 different subforms related to a master form. I display these forms
one at a time as I need them by changing the source object for the subform
control (called fsubOpen) on the Master form.
Forms!frmMaster.fsubOpen.SourceObject = strFormName
In most cases, I only need to open the subform without regard to the record
being displayed. However, I recently came across a situation where I wanted
the record id displayed in a text box on subform1 to determine the record
displayed on subform2. When the user clicks a command button, I would like
subform1 to be replaced by subform2 as the source object for fsubopen and to
display the record with the displayed record ID in the textbox txtRecordID.
If this were a standard openForm situation, one could easily apply the
stLinkCriteria, but i don't think that will work for this. Any ideas would be
welcome.