We help IT Professionals succeed at work.
Get Started

Table format in Outlook Email

Last Modified: 2012-05-10
I have an email that uses several queires to produce dyanmic data for individualized email.  In the first query, there are two fields returned, however they are varying lengths so I want the data in the second field to line up rather than just tabbing between the columsn.  I am trying to create HTML code (which I know nothing about) based on samples but rather than getting one table, I am getting the data in two columns, but with a line between each row, which I do not want.  Attached is the code snippet that creates the first query result set in the email.
Do While Not .EOF
strMailBody = strMailBody & "<table border=0 width=282 height=48>" & "<tr>" & _
      "<td width=200 height=21><Font Color=Red>" & ![job_code] & "</td>" & _
      "<td width=82 height=21><Font Color=Red>" & Format(![Ratio], "0.00%") & "</td>" & _
    "</tr>" & _
End With
Set rst = Nothing

Open in new window

Watch Question
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE