Hello,
At the moment i am using the code below to open up a new email message with all my listed clients e-mail addresses in the bcc field. Unfortunatly instead of outlook i need to open up in AOL.
I'm guessing this may not be possible, as then it would have to open up a browser, login and then create a new message.
So does anyone know of a better way to go about this?
CODE
Private Sub Command12_Click ()
Dim cn As ADODB.Connectio n
Dim rs As ADODB.Recordset
Dim strEmail As String
Set cn = CurrentProject. Connection
Set rs = New ADODB.Recordset
rs.Open "SELECT * FROM CustomerT WHERE Email Is Not Null", cn
With rs
Do While Not .EOF
strEmail = strEmail & .Fields("Email" ) & ";"
.MoveNext
Loop
.Close
End With
On Error GoTo Err_Command12_C lick
DoCmd.SendObjec t _
, _
, _
, _
, _
, _
("" & strEmail), _
, _
, _
True
Exit_Command12_ Click:
Exit Sub
Err_Command12_C lick:
MsgBox Err.Description
Resume Exit_Command12_ Click
End Sub
Thanks for your help
At the moment i am using the code below to open up a new email message with all my listed clients e-mail addresses in the bcc field. Unfortunatly instead of outlook i need to open up in AOL.
I'm guessing this may not be possible, as then it would have to open up a browser, login and then create a new message.
So does anyone know of a better way to go about this?
CODE
Private Sub Command12_Click ()
Dim cn As ADODB.Connectio n
Dim rs As ADODB.Recordset
Dim strEmail As String
Set cn = CurrentProject. Connection
Set rs = New ADODB.Recordset
rs.Open "SELECT * FROM CustomerT WHERE Email Is Not Null", cn
With rs
Do While Not .EOF
strEmail = strEmail & .Fields("Email" ) & ";"
.MoveNext
Loop
.Close
End With
On Error GoTo Err_Command12_C lick
DoCmd.SendObjec t _
, _
, _
, _
, _
, _
("" & strEmail), _
, _
, _
True
Exit_Command12_ Click:
Exit Sub
Err_Command12_C lick:
MsgBox Err.Description
Resume Exit_Command12_ Click
End Sub
Thanks for your help
Comment