davman2002
Programmer
I am currently working on a project for work that will send an email to all employees with their statistics. although I have sucessfully been able to write the code that loops thru a table and sends an email to each person listed in a database. The problem I am having is that I would like to be able to format the output in columns. The current statement that I have is
While Not rst.EOF
DoCmd.SendObject acSendNoObject, , , rst("email"
, , , , _
"Name" & Chr$(9) & "Generic_Percent" & Chr$(9) & "Formulary Percent" & Chr$(9) & "Generic Max" & _
Chr$(10) & rst("Name"
& Chr$(9) & rst("Gen_Percent"
& Chr$(9) & rst("For_percent"
& Chr$(9) & _
rst("Gen_Max"
, False
rst.MoveNext
Wend
Please help
While Not rst.EOF
DoCmd.SendObject acSendNoObject, , , rst("email"
"Name" & Chr$(9) & "Generic_Percent" & Chr$(9) & "Formulary Percent" & Chr$(9) & "Generic Max" & _
Chr$(10) & rst("Name"
rst("Gen_Max"
rst.MoveNext
Wend
Please help