VbCrLf Or Chr$(13)?
Jun 14, 2005I have a Send button on my Access form, and in its Event Procedure i have the following:
stText = "You have a new Task" & Chr$(13) & Chr$(13) & _
"Number: " & stCOFNumber & Chr$(13) & _
"ID: " & stCompanyID & Chr$(13) & _
"Name: " & stCompanyName & Chr$(13) & _
"Name: " & stContactName & Chr$(13) & _
"Address: " & stAddress & Chr$(13) & _
"Terms: " & stTRDW & Chr$(13) & _
"Pre-Requisites: " & stPreReq & Chr$(13) & _
"Location of Work: " & stWorkLoc & Chr$(13) & _
"Activities: " & stDelivActiv & Chr$(13) & _
"Start Date: " & stStartDate & Chr$(13) & _
"End Date: " & stEndDate & Chr$(13) & _
"Please reply to confirm Task"
This is supposed to be the text part of the SendObject command.
Now in my outlook textbox, im getting:
You have a new taskNumber: 123456ID:Name: Commercial Bank Name: john johnAddress: Damascudffdfd
Yousef El Azmi
Commercial Bannk Terms: iiiiiiiiiiiiiPre-Requisites: iiiiiiiiiiiiiiLocation: iiiiiiiiiiiActivities: iiiiiiiiiiiiiiStart Date: 12/12/2004End Date: 14/12/2004Please reply to confirm Task.
Buttom line is, im not getting them on a new line like im supposed to. VBCrLf is giving me errors whenever i use it instead of chr$(13).
What do you think?
How can i have a text formatted, with each info on a line?
Thank you for your help.