robertlewisnet
New member
- Local time
- Today, 11:20
- Joined
- Mar 21, 2005
- Messages
- 8
I have an option group that has many reports being picked using a CASE statement and being fed into a DoCmd.OpenReport command. I am wanting to not actually run the report, but the query (Record Source) and then export the results into a csv file. the issue is I want the query to be run to be as dynamic as the report that is picked.
My question is basically how do you (knowing the report name) go to that report and pull the "Record Source" into a variable so I can feed that variable into a query. I don't know how to export it yet but if this detail get's answered that should not be a problem to find on the forum.
-thanks again.
My question is basically how do you (knowing the report name) go to that report and pull the "Record Source" into a variable so I can feed that variable into a query. I don't know how to export it yet but if this detail get's answered that should not be a problem to find on the forum.
-thanks again.