Close the snapshot viewer?

  • Thread starter Thread starter jo
  • Start date Start date
J

jo

Hi guys I have coding to email a snap shot and in my previous coding which
was SendObject the Viewer closed after the email was sent but the coding I am
using now does not close the viewer I have tried:
Kill Application.CurrentProject.Path & "\Overdue.snp" but the error comes
up with Object required. Any ideas??
 
Hi I have solved this problem by changing the following code from True to
False:
DoCmd.OutputTo _
acOutputReport, , acFormatSNP, _
Application.CurrentProject.Path & "\Overdue.snp", True

I have change to this:

DoCmd.OutputTo _
acOutputReport, , acFormatSNP, _
Application.CurrentProject.Path & "\Overdue.snp", False

I hope this helps someone who may have the same problem..
 
Back
Top