Hi
I've written the code below to send an automatically populated email. Access is telling me there is a syntax error with this code. I cannot find out what it is!
This is linked to a document register where someone has created a new version of a document and I want them to be able to send an email to an email address that forwards emails to all staff to let them know of the new version.
If you are able to help me with the above I would be very grateful. I've been trying to work out what is wrong for weeks!
Many thanks
Georgie
I've written the code below to send an automatically populated email. Access is telling me there is a syntax error with this code. I cannot find out what it is!
Code:
DoCmd.SendObject , "", "", "[email]xxx@xxx.com[/email]", "", "", & Me.Document_Name & & Me.Document_Number& & Me.Version_Number&, "Dear all " & vbLf & vbLf & "Please note that there is a new version of the above document." & vbLf & vbLf & "Please ensure that you familiarise yourself with this new version and delete all previous copies. Below is a summary of the changes made." & vbLf & vbLf & ""&Me.Reason_for_change&"" & vbLf & vbLf & "Thank you", True
This is linked to a document register where someone has created a new version of a document and I want them to be able to send an email to an email address that forwards emails to all staff to let them know of the new version.
If you are able to help me with the above I would be very grateful. I've been trying to work out what is wrong for weeks!
Many thanks
Georgie
Last edited by a moderator: