
Originally Posted by
yes sir
I'm linking the subform to the Profile form through a field called ID. This field is on both Form's record source.
Here is what I added for an On-Click Macro:
Open Form: Prospect Form
Where Condition: [ID]=[Forms]![Rosters]![ID]
Where Roster is the name of the form with the subform. (The subform is named "SUB")
remember that subforms have two very distinct attributes. the control name and the actual object name. try changing the where condition in the macro to:
Code:
[ID]=[Forms]![Rosters]![SUB].form![ID]
the other thing to note is that if you try to reference that subform directly in a macro or in code, you'll always get an error that says 'object is not loaded', or something to that effect.
so try that first. If that doesn't work use the syntax in code. I know it works there.