I got the following to work:
DoCmd.OutputTo acOutputReport, "INVOICE - E-INVOICE-A", acFormatRTF, "c:\test.doc"
Now, what I am doing is placing that code into an autoexec maco that runs when access is opened, then it closes access, so this is a one click auto create file process.
I do the same process for printing a report.
The problem I am having now is running this access macro/program from an sql store procedure / query analyzer. What happens is msaccess.exe runs in the task manager, the database creates a ldb file, but it just hangs then.
If I run the database by double clicking on it, it runs perfectly.
I am thinking it is hanging up because it is afraid access will prompt for something. Is there something in my code I have above that could possibly prompt the user for anything? Or, any ideas on how to get this accomplished from a stored precedure / query analyzer?