I have a report that contains check boxes that I want to email to colleagues within the same company. In order for the report to maintain its format and display the checkmarks I am using a snapshot. My problem is that I just can't get Lotus Notes to open.
I know Access wants to use Outlook but we don't use that - nothings simple is it.
Ive tried the mailto route - No luck.
I've tried the send object route - No luck either as it doesn't recognise Notes as an object.
What I've resorted to is the following I have a button on the report which creates a snapshot and puts a copy of the snapshot into a sub-folder. I then email this as an attachment - having open up Lotus Notes manually.
It works but it's very scrappy.
There must be a better way but I can't find it.
Any ideas greatfully received.
The button has the following code.
Dim stDocName As String
Dim stFileName As String
Dim P1 As String
Dim P2 As String
Dim myName
Dim myPath
Me.Refresh
' myPath - identifies which faculty to send the report to
myPath = Me.FAC_INITIAL
' myName - filename for the snapshot file uses the student number from the form and add the file type extension.
P1 = Me.STUDENT_NUMBER
P2 = ".snp"
myName = P1 & P2
stDocName = "EmailFacultyForm"
DoCmd.OutputTo acOutputReport, stDocName, acFormatSNP, "c:\EmailForms\" & myPath & "\" & myName
Exit_SendAsEmail_Click:
Exit Sub
Err_SendAsEmail_Click:
MsgBox Err.Description
Resume Exit_SendAsEmail_Click
End Sub
I know Access wants to use Outlook but we don't use that - nothings simple is it.
Ive tried the mailto route - No luck.
I've tried the send object route - No luck either as it doesn't recognise Notes as an object.
What I've resorted to is the following I have a button on the report which creates a snapshot and puts a copy of the snapshot into a sub-folder. I then email this as an attachment - having open up Lotus Notes manually.
It works but it's very scrappy.
There must be a better way but I can't find it.
Any ideas greatfully received.
The button has the following code.
Dim stDocName As String
Dim stFileName As String
Dim P1 As String
Dim P2 As String
Dim myName
Dim myPath
Me.Refresh
' myPath - identifies which faculty to send the report to
myPath = Me.FAC_INITIAL
' myName - filename for the snapshot file uses the student number from the form and add the file type extension.
P1 = Me.STUDENT_NUMBER
P2 = ".snp"
myName = P1 & P2
stDocName = "EmailFacultyForm"
DoCmd.OutputTo acOutputReport, stDocName, acFormatSNP, "c:\EmailForms\" & myPath & "\" & myName
Exit_SendAsEmail_Click:
Exit Sub
Err_SendAsEmail_Click:
MsgBox Err.Description
Resume Exit_SendAsEmail_Click
End Sub