Ok all done with all the enhancements for now and coming to one issue that I need to come to the great wizard...
Tables:
Open Text fields: Contact1 Contact2 Contact3.
Issues: Generating email, I am recieving error 2295 (Unknown message recipient(s). When Contact1, Contact2, Contact3 is null because of my code list that the following need to be included. There will be times that only 2 of the 3 are needed. I do not want it to cancel sending the email but simply move on if the field is null. What is hte easiest way... If statement, Case statement? Thanks and I am done for a couple of months at least.
Tables:
Open Text fields: Contact1 Contact2 Contact3.
Issues: Generating email, I am recieving error 2295 (Unknown message recipient(s). When Contact1, Contact2, Contact3 is null because of my code list that the following need to be included. There will be times that only 2 of the 3 are needed. I do not want it to cancel sending the email but simply move on if the field is null. What is hte easiest way... If statement, Case statement? Thanks and I am done for a couple of months at least.
Code:
Private Sub Check173_Click()
On Error GoTo ErrorHandler
DoCmd.SendObject acSendNoObject, , , _
To:=Me.Contact1 & ": " & Me.Contact2 "; " & Me.Contact3, bcc:="My.Email@123.com", _
Subject:="Request for Service Receipt", _
MessageText:="This email serves as an acknowledgement of service requested blah blah blah"
ForceExit:
Exit Sub
ErrorHandler:
Select Case Err.Number
Case 2295 'Trape Error 2295
MsgBox "Missing Contacts", , "Cancelled"
Resume ForceExit
Case Else
MsgBox Err.Description 'Will show every other error
Resume ForceExit
End Select
End Sub