G
Guest
Thank you to Anyone who attempts an answer on this one it is a long one
I have an events managment database based on the microsoft template but
highly modified and have for two months been trying to make it coax it to
send a confirmation of booking email to participants from a form/subform
the main form is called Attendees
the sub form is AttendeesSubform (original) with the field [RegistrationFee]
i can get an email to send with the following code
oCmd.SendObject _
acSendQuery, "Email_query", acFormatTXT, _
[EmailName], _
Nz([PDN_Email], ""), _
Nz([Managers_Email], ""), _
"Confirmation of registration on Course", _
"Dear " & [AttendeeFirstName] & ", " & _
"I can confirm you have a place on the" & " " & DLookup("[EventName]",
"Events", _
"[EventName] = '" & _
Me![Attendees Subform]![EventName] & "'") & "." & _
" Details of dates and Costs can be found in the enclosed attachment" & _
" I will contact you near the time to confirm time and venues," & _
" The outstanding balance " & _
" Will be invoiced for near the course start date" & _
" Thanks Phil", _
True
but as you can see i have to use a query to get info from the sub form in
the email
i would like the email to say "the outstanding balance of [RegistrationFee]
will be invoiced for nearer the time"
the problem i have is i cannot find a way to refer to the subform field, the
subform data is collected using a select query if that makes any difference
i previously got the info for the course to work but if put in the reg fee
field it comes up with an error the reg fee is calculated using
=[RegistrationFee]+CLng((([SalesTaxRate]*[RegistrationFee])*100))/100
if this makes a difference
i hope someone can help me
thanks
Phil
I have an events managment database based on the microsoft template but
highly modified and have for two months been trying to make it coax it to
send a confirmation of booking email to participants from a form/subform
the main form is called Attendees
the sub form is AttendeesSubform (original) with the field [RegistrationFee]
i can get an email to send with the following code
oCmd.SendObject _
acSendQuery, "Email_query", acFormatTXT, _
[EmailName], _
Nz([PDN_Email], ""), _
Nz([Managers_Email], ""), _
"Confirmation of registration on Course", _
"Dear " & [AttendeeFirstName] & ", " & _
"I can confirm you have a place on the" & " " & DLookup("[EventName]",
"Events", _
"[EventName] = '" & _
Me![Attendees Subform]![EventName] & "'") & "." & _
" Details of dates and Costs can be found in the enclosed attachment" & _
" I will contact you near the time to confirm time and venues," & _
" The outstanding balance " & _
" Will be invoiced for near the course start date" & _
" Thanks Phil", _
True
but as you can see i have to use a query to get info from the sub form in
the email
i would like the email to say "the outstanding balance of [RegistrationFee]
will be invoiced for nearer the time"
the problem i have is i cannot find a way to refer to the subform field, the
subform data is collected using a select query if that makes any difference
i previously got the info for the course to work but if put in the reg fee
field it comes up with an error the reg fee is calculated using
=[RegistrationFee]+CLng((([SalesTaxRate]*[RegistrationFee])*100))/100
if this makes a difference
i hope someone can help me
thanks
Phil