I have this code, but I don't know why works somtimes and sometimes doesn't
for example, is if auto collect is checked, should pick "as per your instructions" if not the other message,
but doesn't work all the time, any idea?
thanks
Code:
thanks again for your wonderful help.
for example, is if auto collect is checked, should pick "as per your instructions" if not the other message,
but doesn't work all the time, any idea?
thanks
Code:
Code:
If Me.txtBody > 0 Then
'If Len(Me.txtBody & vbNullString) > 0 Then
sBody = Me.txtBody
ElseIf Forms![Contact Details]![Auto Collect] = True Then
sBody = "Hi" & " " & Me.txtFirstName & "," & vbCrLf & vbCrLf & "Here is the monthly invoice # for " & Me.txtCompany.Column(1) & "." & " " & " As per your instructions we will withdraw the amount from your loading wallet. " & vbCrLf & vbCrLf & "" & "Please contact me if you have any questions.Thanks,"
Else
sBody = "Hi" & " " & Me.txtFirstName & "," & vbCrLf & vbCrLf & "Here is the monthly invoice # for " & Me.txtCompany.Column(1) & "." & " " & "advise us if you would prefer to wire us payment to our updated SVB USD Bank account shown on the invoice, or if we may collect the payment from your Wallet account. " & vbCrLf & vbCrLf & "" & "Please contact me if you have any questions.Thanks,"
'sBody = "Hi" & " " & Me.txtFirstName & "," & vbCrLf & vbCrLf & "Here is the monthly invoice # for " & Me.txtCompany.Column(1) & "." & " " & "Please confirm if we may collect the payment from your wallet. " & vbCrLf & vbCrLf & "" & "Please contact me if you have any questions.Thanks,"
End If
If Len(Me.txtAttachment) > 0 Then
oEmail.Attachments.Add Me.txtAttachment.Value
End If
thanks again for your wonderful help.