A
Alex via AccessMonster.com
Hi everyone. I have a problem with the above subject. I need to make a
button on a form that will take a screenshot of the current form and send
to to the address mentioned in other fields. So far, I've been able to find
this code to, but can't get it to work (there is some error along the first
line):
Private Sub Command67_Click()
Dim outApp As Outlook.Application, outMsg As MailItem
Set outApp = CreateObject("Outlook.Application")
Set outMsg = outApp.CreateItem(olMailItem)
With outMsg
'.Importance = olImportanceHigh
..To = Me.store_email & Me.store_area_manager_email
'.CC = "CC EMAIL ADDRESS GOES HERE"
'.BCC = "BCC EMAIL ADDRESS GOES HERE"
' .Subject = "YOUR SUBJECT GOES HERE"
' .Body = "YOUR_E-MAIL_MESSAGE_GOES_HERE"
'.Attachments.Add "YOUR FILE PATH AND NAME", , , "YOUR FILES NAME"
' If you want the screen to be seen then add the following line
..Display
'.Send
End With
Set outApp = Nothing
Set outMsg = Nothing
End Sub
button on a form that will take a screenshot of the current form and send
to to the address mentioned in other fields. So far, I've been able to find
this code to, but can't get it to work (there is some error along the first
line):
Private Sub Command67_Click()
Dim outApp As Outlook.Application, outMsg As MailItem
Set outApp = CreateObject("Outlook.Application")
Set outMsg = outApp.CreateItem(olMailItem)
With outMsg
'.Importance = olImportanceHigh
..To = Me.store_email & Me.store_area_manager_email
'.CC = "CC EMAIL ADDRESS GOES HERE"
'.BCC = "BCC EMAIL ADDRESS GOES HERE"
' .Subject = "YOUR SUBJECT GOES HERE"
' .Body = "YOUR_E-MAIL_MESSAGE_GOES_HERE"
'.Attachments.Add "YOUR FILE PATH AND NAME", , , "YOUR FILES NAME"
' If you want the screen to be seen then add the following line
..Display
'.Send
End With
Set outApp = Nothing
Set outMsg = Nothing
End Sub