Hello again all, I created a command button called Email. The button works fine accept for the fact that if I want to click it on the next record that I am e-mailing, it just doesn't work. I have exhusted all my means of making this work.
The only way I can make it work again is that I have to close out the DB altogher and then come back to the record and then hit the button - again and it works fine again.
I am very frustrated
and can not figure out whats wrong. Her is an example of my code. Is there anywhere I can put a number and tell it to work each time I click it?
Private Sub Command222_Click()
'Prevent error screen if user cancels without sending mail.
On Error Resume Next
Dim strToWhom As String
Dim strMsgBody As String
Dim strManagers As String
strToWhom = Me!Managers
strMsgBody = strMsgBody & "SIPP# " & Me.ID & " for " & Me.Company & ", will start on " & Me.Start_Date & ". Please see attachment."
DoCmd.SendObject , , , strToWhom, Me.Project_Owner, , "SIPP's ", _
strMsgBody, True
End Sub BLB
Always Grateful
The only way I can make it work again is that I have to close out the DB altogher and then come back to the record and then hit the button - again and it works fine again.
I am very frustrated
![[cry] [cry] [cry]](/data/assets/smilies/cry.gif)
Private Sub Command222_Click()
'Prevent error screen if user cancels without sending mail.
On Error Resume Next
Dim strToWhom As String
Dim strMsgBody As String
Dim strManagers As String
strToWhom = Me!Managers
strMsgBody = strMsgBody & "SIPP# " & Me.ID & " for " & Me.Company & ", will start on " & Me.Start_Date & ". Please see attachment."
DoCmd.SendObject , , , strToWhom, Me.Project_Owner, , "SIPP's ", _
strMsgBody, True
End Sub BLB
Always Grateful