Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / April 2006

Tip: Looking for answers? Try searching our database.

Snapshot Report - attaching to e-mail

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Taylor - 29 Apr 2006 06:21 GMT
I have some simple code behind a control button - basically prints a report
and send the report (in snapshot format) to lotus notes for e-mailing.

The code worked fine for ages and all of a sudden the attachment to Lotus
Notes has an *.xls extension and not a *snp extension. I haven't done
anything to my PC it just happened!!

The "fix" is to copy the attachment to my desctop, rename it with the
correct extension (.snp) and re attach it to the e-mail.

Has anyone ever come accross this - or does anyone know how to fix it?

I'm using W2K, A2002 and Lotus Notes v6

The code I'm using is: -

Private Sub Command72_Click()
On Error GoTo Err_Command72_Click

   Dim stDocName As String
   Dim strReportFilter As String

   If Not IsNull(Me![cellnum]) Then
   DoCmd.Save

   Else
   MsgBox "You must enter a Cell Number", vbOKOnly, "Cell"

   Exit Sub
End If

   stDocName = "RptDeliveryDetails"
   strReportFilter = "ID = Forms!FrmMainEntry!ID"
   DoCmd.OpenReport stDocName, acViewNormal, , strReportFilter
   DoCmd.SendObject acSendReport, stDocName, acFormatSNP,
"emailaddress.com.au", , , "email subject", "Please look at the attachment",
True

   ConfirmStore = Now()

Exit_Command72_Click:
   Exit Sub

Err_Command72_Click:
   MsgBox Err.Description
   Resume Exit_Command72_Click

End Sub

Signature

John Taylor

Rick Brandt - 29 Apr 2006 13:56 GMT
> I have some simple code behind a control button - basically prints a
> report and send the report (in snapshot format) to lotus notes for
> e-mailing.
> The code worked fine for ages and all of a sudden the attachment to
> Lotus Notes has an *.xls extension and not a *snp extension. I
> haven't done anything to my PC it just happened!!
[snip]

See this Microsoft Knowledge Base article...

http://support.microsoft.com/default.aspx?scid=kb;en-us;555020

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.