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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting all the subforms Addresses to display in email text when sendi

Status
Not open for further replies.

ImStuk

Technical User
Feb 20, 2003
62
US
I have an Order form that has a subform of addresses. Each order has several addresses. I use the below code to send the order via email. I want the email text to display all the addresses in the subform, but so far I have only been able to get it to display the first address. Any help on this would be greatful.

Dim stDocName As String
stDocName = "rptKnoxWorkOrder"
DoCmd.SendObject acReport, stDocName, "Snapshot Format
(*.snp)", "dispatch@blahblah.com", , , [cmbAttention] & "
has a new Order", [cmbRequestType] & " to " & [Forms]!
[frmNewOrder]![frmNewOrderSub]![ServiceAddress] & " due
by " & [txtLastDaytoServe] & " at " & [txtTimeDue], 1
 
I have been trying a DLookUp string on this, but I keep getting a Data Type mismatch error. I am really needing some help on this...
 
My subForm is set to single form, so I wonder if that has something to do with it. Somebody help us!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top