Send Subform data through email

Joined
Aug 9, 2011
Messages
1
Reaction score
0
I currently use code to send data to my clients and would like to include more detailed summaries by sending them some data from the subform I have. I am pretty familiar with how all this works so I just need a small line or advbice to get me started. Thanks in advance for any help.

here is the current code i use just to send the email.

Code:
Private Sub Command25_Click()
Dim olLook As Object                     'Start MS Outlook
Dim olNewEmail As Object                 'New email in Outlook
Dim strContactEmail As String            'Contact email address
Dim strCarrier As String                 'Shipping Carrier
Dim strShipDate As String                'Ship Date
 



 
Set olLook = CreateObject("Outlook.Application")
Set olNewEmail = olLook.createitem(0)
strorderid = orderid
strEmailText = fname
strContactEmail = email


   With olNewEmail
      .To = strContactEmail
      .BCC = "[email protected]"
      .body = "Your order details from My Shops Unlimited, LLC. " & strEmailText & strorderid & "."
      .subject = "Your recent service from My Shops Unlimited, LLC"
      .display
   End With
End Sub
I cleaned up the code to make it look simple. But basically inside of the .body i would like to be able to include subform "a" fields.

Once again thanks in advance for any help.


Matthew Trant,

My Shops Unlimited, LLC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top