Hi,
I have an Access VB module that creates an Excel report. Part of the Access VB module calls a macro that runs a series of SQL statements based upon what the user specified. Different users have different business rules, thus there are multiple macros, and I select the appropriate one before running that particular report. What I want to do is include the SQL statements used in the macro as its own tab in the resulting report, as a record of what business rules were used. Is there a way to do this? I don't even know where to start with any code on that so can't post anything.
If you could help, I'd appreciate it!!! Thanks!
I have an Access VB module that creates an Excel report. Part of the Access VB module calls a macro that runs a series of SQL statements based upon what the user specified. Different users have different business rules, thus there are multiple macros, and I select the appropriate one before running that particular report. What I want to do is include the SQL statements used in the macro as its own tab in the resulting report, as a record of what business rules were used. Is there a way to do this? I don't even know where to start with any code on that so can't post anything.
If you could help, I'd appreciate it!!! Thanks!