Hi all,
I have two forms that use the same subform. The datasource for the subform needs to be different for each of the two forms, so I set it in an on_current event private sub in each form. It works but is this the best practice?
Also, the datasource for one of the forms is a query, while the datasource for the other form is a modification of that same query. Would it be better to:
A. Maintain two seperate queries
B. Not use queries and just set the datasource to a "Select" statement (they are very long)
C. Some other solution I haven't thought of
I tried to set the datasource for form A to "qryQueryName" and the datasource for form B to "qryQueryName" & "querymodification" but it doesn't like that.
Thank you for any and all help.
Rebecca
I have two forms that use the same subform. The datasource for the subform needs to be different for each of the two forms, so I set it in an on_current event private sub in each form. It works but is this the best practice?
Also, the datasource for one of the forms is a query, while the datasource for the other form is a modification of that same query. Would it be better to:
A. Maintain two seperate queries
B. Not use queries and just set the datasource to a "Select" statement (they are very long)
C. Some other solution I haven't thought of
I tried to set the datasource for form A to "qryQueryName" and the datasource for form B to "qryQueryName" & "querymodification" but it doesn't like that.
Thank you for any and all help.
Rebecca