Hello,
I would like to combine 3 forms because they are almost identical, except for the dynamic SQL generated in the VBA. Instead of the SQL string, can I do this: create a separate Access query for each, and dynamically refer to the appropriate query within the VBA? (would that be a docmd.openquery? do I need any other statements?)
I actually do not even know how to dynamically refer to a query, but if I did, I imagine I can create an 'if' statement?
Thanks in advance for any help.
I would like to combine 3 forms because they are almost identical, except for the dynamic SQL generated in the VBA. Instead of the SQL string, can I do this: create a separate Access query for each, and dynamically refer to the appropriate query within the VBA? (would that be a docmd.openquery? do I need any other statements?)
I actually do not even know how to dynamically refer to a query, but if I did, I imagine I can create an 'if' statement?
Thanks in advance for any help.