Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Functions like vbcrlf?

Status
Not open for further replies.

BaudKarma

Programmer
Feb 11, 2005
194
US
I'm building a program to track promotions within our company. One of the requested functions is for the program to automagically send an EMail to payroll when HR has recieved all of the paperwork necessary to approve the promotion.

I've got the code to compose and send the EMail completed. I build the body of the email by using a text string called strEmailbody, and just appending the necessary data and filler text to it. For example,

strEmail = "Employee ID: " & me!eeid & vbcrlf & "Employee Name: " & me!name... etc etc

The problem is that the body of the email looks a little ragged. I'd like some way to line up the columns of data nice and neat, but I don't know how to do it. Is there a vbTab function or something similar I could use? Or a different way to compose the body of the email? I'm using the docmd.sendobject command to send the Email via Outlook.



 
You can use the VBTab also to add some structure...

Steve Medvid
"IT Consultant & Web Master"

Chester County, PA Residents
Please Show Your Support...
 
Hi

Why don't you create a good looking report in Access that has all the layout you want and the employee details on.. then in the code simply use the

DoCmd.SendObject

function to send the report as an email? Then the email is formatted how you want.

Regards



Hope this helps!

Regards

BuilderSpec
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top