HelpTheNewbie
New member
- Local time
- Today, 00:33
- Joined
- Feb 26, 2007
- Messages
- 7
I am running VBA code attached to a button on a form. Among other things the button imports and Excel file and then asks if the user would like to view a report of the imported data. I would like to allow this to be exported to PDF format, but can't quite seem to get the syntax or something. Here is what I have:
DoCmd.OpenReport "RemittanceReport", acPreview
DoCmd.OutputTo cOutputReport, "RemittanceReport", "*.pdf", "C:\Example.pdf"
I get an error saying "The format in which you are attempting to output the current object is not available." I would greatly appreciate any help.
DoCmd.OpenReport "RemittanceReport", acPreview
DoCmd.OutputTo cOutputReport, "RemittanceReport", "*.pdf", "C:\Example.pdf"
I get an error saying "The format in which you are attempting to output the current object is not available." I would greatly appreciate any help.