Geoff Codd
Registered User.
- Local time
- Today, 09:01
- Joined
- Mar 6, 2002
- Messages
- 190
I've got the following code
Private Sub Sendemail_Click()
Dim rsEmail As DAO.Recordset
Dim strEmail As String
Set rsEmail = CurrentDb.OpenRecordset("Bulk E-Mail")
Do While Not rsEmail.EOF
strEmail = rsEmail.Fields("E-Mail Address").Value
DoCmd.SendObject , , , strEmail, , , Me!Subject, Me!Message, No
NEED TO WAIT 6 SECONDS THEN PERFORM SendKeys "%y"
rsEmail.MoveNext
Loop
Set rsEmail = Nothing
End Sub
I need to insert a timer where it says "NEED TO WAIT 6 SECONDS THEN PERFORM " so that the procedure will wait 6 sends then perform the keystroke.
All help greatly received
Thanks
Geoff
Private Sub Sendemail_Click()
Dim rsEmail As DAO.Recordset
Dim strEmail As String
Set rsEmail = CurrentDb.OpenRecordset("Bulk E-Mail")
Do While Not rsEmail.EOF
strEmail = rsEmail.Fields("E-Mail Address").Value
DoCmd.SendObject , , , strEmail, , , Me!Subject, Me!Message, No
NEED TO WAIT 6 SECONDS THEN PERFORM SendKeys "%y"
rsEmail.MoveNext
Loop
Set rsEmail = Nothing
End Sub
I need to insert a timer where it says "NEED TO WAIT 6 SECONDS THEN PERFORM " so that the procedure will wait 6 sends then perform the keystroke.
All help greatly received
Thanks
Geoff