Good afternoon,
I have written a program in vba that is being used to set and follow up the status of a product. The product is either activated or initiated for deletion. Either way, every time a change is recorded in the status, a notification mail is sent to one person. I use a form to display all the information about the product and another form to preview the mail message. Everything works fine, except... In the preview of the mail I merge the contents of three fields into the mailbody. I use Chr(13) to create a new linefeed but it never shows in preview although i the mail itself it is applied correct. I also tried Chr(10), but this didn't help either.
Is there anyone who can help me?
Code:
If StatusAct = True Then
subj = "Product " & Field1 & " - " & Field2 & " has been initiated for re-activation"
body = Field3 & Chr(13) & Field4 & Chr(13) & "Date : " & Now &Chr(13)
Else
subj = "Product " & field1 & " - " & Field2 & " has been initiated for deletion"
body = Field3 & Chr(13) & Field4 & Chr(13) & "Datum : " & txtCurDate & Chr(13)
End If
Thanks in advance
kind regards
Borg Exelmans
I have written a program in vba that is being used to set and follow up the status of a product. The product is either activated or initiated for deletion. Either way, every time a change is recorded in the status, a notification mail is sent to one person. I use a form to display all the information about the product and another form to preview the mail message. Everything works fine, except... In the preview of the mail I merge the contents of three fields into the mailbody. I use Chr(13) to create a new linefeed but it never shows in preview although i the mail itself it is applied correct. I also tried Chr(10), but this didn't help either.
Is there anyone who can help me?
Code:
If StatusAct = True Then
subj = "Product " & Field1 & " - " & Field2 & " has been initiated for re-activation"
body = Field3 & Chr(13) & Field4 & Chr(13) & "Date : " & Now &Chr(13)
Else
subj = "Product " & field1 & " - " & Field2 & " has been initiated for deletion"
body = Field3 & Chr(13) & Field4 & Chr(13) & "Datum : " & txtCurDate & Chr(13)
End If
Thanks in advance
kind regards
Borg Exelmans