Is it possible through code to change a form's record source PRIOR to the form being opened on the screen?
Example:
Form 'A' is set so that Record Source is a Table.
Primary Form has two buttons, both which open Form 'A'.
I want the one button to open Form 'A' as is, but I would like the other button to open Form 'A' with the Record Source being a Query, as opposed to the table.
I can change the Record Source after opening the Form 'A' with DoCmd.Open, but this looks messy, as the query box opens on top of the Newly opened form, as opposed to popping up prior to the form appearing, as it would if the form's record source was by default set to the Query.
I hope this isn't too muddled a question. I thank all in advance for any advice or assistance that can be lent.
S.
Example:
Form 'A' is set so that Record Source is a Table.
Primary Form has two buttons, both which open Form 'A'.
I want the one button to open Form 'A' as is, but I would like the other button to open Form 'A' with the Record Source being a Query, as opposed to the table.
I can change the Record Source after opening the Form 'A' with DoCmd.Open, but this looks messy, as the query box opens on top of the Newly opened form, as opposed to popping up prior to the form appearing, as it would if the form's record source was by default set to the Query.
I hope this isn't too muddled a question. I thank all in advance for any advice or assistance that can be lent.
S.