I'm trying to write a little VB program that will run the DoCmd object in an Access database to export a report in HTML format.
However, I keep getting this error 2282 (formats for HTML are missing from the Windows Registry).
My code is:
Dim objAcc as object
set objAcc = CreateObject("Access.Application"
objAcc.OpenCurrentDatabase
objAcc.DoCmd.OutputTO 3, "TheReport", 0, "save location"
objAcc.CloseCurrentDatabase
objAcc.Quit
If I leave the '0' out of the docmd it prompts me for the export format and everything works fine.
Can someone tell me how I can have the HTML export format automatically selected without having to prompt the user?
Thanks...
However, I keep getting this error 2282 (formats for HTML are missing from the Windows Registry).
My code is:
Dim objAcc as object
set objAcc = CreateObject("Access.Application"
objAcc.OpenCurrentDatabase
objAcc.DoCmd.OutputTO 3, "TheReport", 0, "save location"
objAcc.CloseCurrentDatabase
objAcc.Quit
If I leave the '0' out of the docmd it prompts me for the export format and everything works fine.
Can someone tell me how I can have the HTML export format automatically selected without having to prompt the user?
Thanks...