Adding more fields to send in the email

How do I add more fields from my table to the statement below?

DoCmd.SendObject , , , "John.Anderson@ladwp.com", , , "Mobile Service Request", "Please repair or service this unit: " & (Me![service_id]), False

I am working with a button that I am using to email the current record on a form to a specified user via my default email app (Outlook 2003 on an exchange server).  Here is all of the code from the button in question.

Private Sub Svc_Inv_Click()
On Error GoTo Err_Svc_Inv_Click

    DoCmd.SendObject , , , "John.Anderson@ladwp.com", , , "Mobile Service Request", "Please repair or service this unit: " & (Me![service_id]), False
         
Exit_Svc_Inv_Click:
    Exit Sub

Err_Svc_Inv_Click:
    MsgBox Err.Description
    Resume Exit_Svc_Inv_Click
   
End Sub

Thanks in advance for the help.  I have used access with the wizard stuff for sometime, however this is my first time needing to do something with visual basic code.
   
jande2Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

flavoCommented:
What fields?  And where do you want them - subject / msg body??

Dave
jande2Author Commented:
I want to place all of the fields I want to send in the message body.
flavoCommented:
Something like:


    DoCmd.SendObject , , , "John.Anderson@ladwp.com", , , "Mobile Service Request", "Please repair or service this unit: " & Me![service_id] &_
 Me![SomeOtherField] & Me![SomeOtherFeildHereToo], False

If you post back the exact field names, and the order you want them in, including any other text (such as commas between the field text etc...) I can post back something you should be able to copy and paste right in

Dave
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

jande2Author Commented:
The fields I have are [service_id] [user_name] [staff_id] [sn_no] [mach_name]

I would like to separate them with a label for each field such as:

"Service Order #" [service_id], "Name"[user_name],"Tech" [staff_id], "SN" [sn_no], "Mach Name" [mach_name]

Is this possible?

Thanks
flavoCommented:
Sure:


    DoCmd.SendObject , , , "John.Anderson@ladwp.com", , , "Mobile Service Request", "Please repair or service this unit: " & _
            "Service Order # " &  Me.[service_id] & ", Name " & Me.[user_name] & _
             " , Tech " & Me.[staff_id] & " , SN " &  Me.[sn_no] & ", Mach Name " & Me.[mach_name], False

Dave

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jande2Author Commented:
Thanks for all of your help.  This does exactly what i need it to do.
flavoCommented:
Glad to help mate

Dave :^)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.