hardhitter06
Registered User.
- Local time
- Today, 09:20
- Joined
- Dec 21, 2006
- Messages
- 600
Access 2003.
Hi Guys,
I have a continious form that displays a few fields of Vendor Information through a query search. One of these fields is "VendorCompanyEmail". Is there a way to code a button so that when it is clicked, all of the email fields from the records on the contnious form go into an outlook message (To: ).
I have this code currently set up, but it is only selecting the first record's email on the continious form:
Private Sub Command24_Click()
On Error GoTo Err_Command24_Click
Dim stDocName As String
stDocName = "frmVendorSearchEditCommodity"
' DoCmd.SendObject acReport, stDocName
DoCmd.SendObject acSendNoObject, stDocName, acFormatXLS, Me.VendorCompanyEmail, , , "", , True
Exit_Command24_Click:
Exit Sub
Err_Command24_Click:
MsgBox Err.Description
Resume Exit_Command65_Click
End Sub
Any ideas on how to tweak this to add all of them Email fields returned from the qry on the continious form?
PS The Button is located in the forms Footer.
Hi Guys,
I have a continious form that displays a few fields of Vendor Information through a query search. One of these fields is "VendorCompanyEmail". Is there a way to code a button so that when it is clicked, all of the email fields from the records on the contnious form go into an outlook message (To: ).
I have this code currently set up, but it is only selecting the first record's email on the continious form:
Private Sub Command24_Click()
On Error GoTo Err_Command24_Click
Dim stDocName As String
stDocName = "frmVendorSearchEditCommodity"
' DoCmd.SendObject acReport, stDocName
DoCmd.SendObject acSendNoObject, stDocName, acFormatXLS, Me.VendorCompanyEmail, , , "", , True
Exit_Command24_Click:
Exit Sub
Err_Command24_Click:
MsgBox Err.Description
Resume Exit_Command65_Click
End Sub
Any ideas on how to tweak this to add all of them Email fields returned from the qry on the continious form?
PS The Button is located in the forms Footer.
Last edited: