J
JF
Hello,
I have an access application with multiple reports that users can customize
or use as is. However, I would now like to separate these reports out to a
new DB but still allow the access app in the original DB to have access to
them. There are a couple of reasons for this. One is that users tend to
mistakenly overwrite the main mdb when upgrading, etc and therefore they
lose their custom reports. Another is, the VB code is locked in the main
mdb, and some pre-made reports use VB which means the users can't create
custom reports out of them. Unlocking the VB code is not an option.
In any case, is there an elegant way to separate reports out to a different
DB than where all the data is? The only way I can think of is, through
code, importing the selected report (a list of the reports in the report
MDB is easily created) to the main DB in a "tempReport". This "tempReport"
is then used for viewing or for any user changes and saved back to the
report DB if the user decides to customize. However, a problem I see with
this is I don't think I'll be able to create the "tempReport" if the report
has VB code in it due to the locking.
Another idea I somewhat researched but need more direction is having the
reports DB be a code reference to the main DB. Then, I can create a module
in the reports DB that would handle all the requests from the main db via
function calls (openReport, saveReport). That seems problematic though
because I'm not sure that the report can be opened within the context of the
report DB if there's no data within it. Also, saving a report seems like it
would be a real problem.
Has anyone tried this? Are there any other suggestions?
Regards,
JF
I have an access application with multiple reports that users can customize
or use as is. However, I would now like to separate these reports out to a
new DB but still allow the access app in the original DB to have access to
them. There are a couple of reasons for this. One is that users tend to
mistakenly overwrite the main mdb when upgrading, etc and therefore they
lose their custom reports. Another is, the VB code is locked in the main
mdb, and some pre-made reports use VB which means the users can't create
custom reports out of them. Unlocking the VB code is not an option.
In any case, is there an elegant way to separate reports out to a different
DB than where all the data is? The only way I can think of is, through
code, importing the selected report (a list of the reports in the report
MDB is easily created) to the main DB in a "tempReport". This "tempReport"
is then used for viewing or for any user changes and saved back to the
report DB if the user decides to customize. However, a problem I see with
this is I don't think I'll be able to create the "tempReport" if the report
has VB code in it due to the locking.
Another idea I somewhat researched but need more direction is having the
reports DB be a code reference to the main DB. Then, I can create a module
in the reports DB that would handle all the requests from the main db via
function calls (openReport, saveReport). That seems problematic though
because I'm not sure that the report can be opened within the context of the
report DB if there's no data within it. Also, saving a report seems like it
would be a real problem.
Has anyone tried this? Are there any other suggestions?
Regards,
JF