A
Angela M
I have been working on a database for a while and the last detail I cannot
seem to get is a command button that I would like the users to be able to
click and it auto populate Oulook New Email with the current form as an
attachment in HTML format. I am not familiar much with VBA and have messed
around with it some to where it will send a form if I put the ID number in. I
want to be able to just send the current view of the form and not enter in an
ID number. Also I want it to automatically choose HTML format. This is the
coding I have, can you help? Thanks.
Private Sub SendForm_Click()
On Error GoTo Err_SendForm_Click
Dim stDocName As String
stDocName = "Suggestions Entry"
DoCmd.OpenReport stDocName, acPreview
DoCmd.SendObject acReport
Exit_SendForm_Click:
Exit Sub
Err_SendForm_Click:
MsgBox Err.Description
Resume Exit_SendForm_Click
End Sub
seem to get is a command button that I would like the users to be able to
click and it auto populate Oulook New Email with the current form as an
attachment in HTML format. I am not familiar much with VBA and have messed
around with it some to where it will send a form if I put the ID number in. I
want to be able to just send the current view of the form and not enter in an
ID number. Also I want it to automatically choose HTML format. This is the
coding I have, can you help? Thanks.
Private Sub SendForm_Click()
On Error GoTo Err_SendForm_Click
Dim stDocName As String
stDocName = "Suggestions Entry"
DoCmd.OpenReport stDocName, acPreview
DoCmd.SendObject acReport
Exit_SendForm_Click:
Exit Sub
Err_SendForm_Click:
MsgBox Err.Description
Resume Exit_SendForm_Click
End Sub