i have this code for some reason never put the message even if the checkbox is checked,
would you please help me in what i need to change in order for it to work:
here it's the code:
This line never work:
Thank you.
would you please help me in what i need to change in order for it to work:
here it's the code:
Code:
If txtBody >= 0 Then
sBody = Me.txtBody
Else
If 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) & "." & " " & "Please confirm if we may collect the payment from your wallet. " & vbCrLf & vbCrLf & "If you pay by wire, please note our bank information for wire is updated" & vbCrLf & vbCrLf & "Please contact me if you have any questions.Thanks,"
End If
'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,"
End If
This line never work:
Code:
Else
If 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,"
Thank you.