I'm trying to email a report using the following code:
[DoCmd.SendObject acReport, "Report", "SnapshotFormat(*.snp)", "", "", "", "Todays Report", "", False, ""]
It works great as long as the database window is open, which is not true during runtime and that's when I get the error message: 'The command or action "OutputTo" isn't available now.'
Is there any way around this problem?
qb
[DoCmd.SendObject acReport, "Report", "SnapshotFormat(*.snp)", "", "", "", "Todays Report", "", False, ""]
It works great as long as the database window is open, which is not true during runtime and that's when I get the error message: 'The command or action "OutputTo" isn't available now.'
Is there any way around this problem?
qb