lestatdelioncourt
Programmer
Ok here is the problem.
I have hidden the access application, so only the form shows. On the form I have a button that runs the following code:
DoCmd.OutputTo acReport, cmbreport, acFormatRTF, "c:\" & cmbreport & ".rtf", True
This works great and loads MSWord with the report. However it also unhides the database and then allows the user to access the advanced features in access, and looks very messy.
I have tried to hide the Access application after the above code but this does not wrok.
Any ideas on how to prevent this?
I have hidden the access application, so only the form shows. On the form I have a button that runs the following code:
DoCmd.OutputTo acReport, cmbreport, acFormatRTF, "c:\" & cmbreport & ".rtf", True
This works great and loads MSWord with the report. However it also unhides the database and then allows the user to access the advanced features in access, and looks very messy.
I have tried to hide the Access application after the above code but this does not wrok.
Any ideas on how to prevent this?