We have an access database that lets our floor employees click a button to send reports and data to the supervisor. I know that Access is probably a bad word here but it works for us in this environement and makes the data pretty much error proof.
Anyway I’m using some code that a forum user posted but I’ve run into a snag. Part of the code is listed below. It works fine but the body of the text is where we are having a problem. I need to add lines to format the body and it’s not working the way I expected.
Our body string is formated like:
strBody= "Order " & OrderNumber & “is ready” & vbcrlf & "There were " & FootageRun & “feet run for this order”
The vbCRLF does not actually insert a CR and LF so all the text is run together on one line. Is there a way to format this correctly?
Thanks
David
With mailDoc
.AppendItemValue(“Form”,“Memo”)
.AppendItemValue(“SendTo”,<addressees As String, String Array or Variant>)
.AppendItemValue(“CopyTo”,)
.AppendItemValue(“BlindCopyTo”,)
.AppendItemValue(“Subject”,“Subject As String”)
End With
body = mailDoc.CreateRichTextItem(“Body”)
body.AppendText strBody