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..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top