An extension to my original question which I think I have almost resolved. I have the following VB Code to email a report in snapshot format and it currently works
DoCmd.SendObject acSendReport, "Cash Flow Approval for ALL", cFormatSNP, "John.Smith@emailserver.com", , , "Goods Have Been Delivered", "Goods Have Been Delivered Regarding Cost Authorisation Shown on the Attached", , False
I would like to automate the email address so it uses the value of a control on a form so for example, if control A on Form 1 = "Fred.Smith@emailserver.com" then the code would read something like
DoCmd.SendObject acSendReport, "Cash Flow Approval for ALL", cFormatSNP, Forms![Form 1].[control A], , , "Goods Have Been Delivered", "Goods Have Been Delivered Regarding Cost Authorisation Shown on the Attached", , False
I cannot seem to get this to work and I assume this has to be achieved in another way.
Again, any help would be appreciated
DoCmd.SendObject acSendReport, "Cash Flow Approval for ALL", cFormatSNP, "John.Smith@emailserver.com", , , "Goods Have Been Delivered", "Goods Have Been Delivered Regarding Cost Authorisation Shown on the Attached", , False
I would like to automate the email address so it uses the value of a control on a form so for example, if control A on Form 1 = "Fred.Smith@emailserver.com" then the code would read something like
DoCmd.SendObject acSendReport, "Cash Flow Approval for ALL", cFormatSNP, Forms![Form 1].[control A], , , "Goods Have Been Delivered", "Goods Have Been Delivered Regarding Cost Authorisation Shown on the Attached", , False
I cannot seem to get this to work and I assume this has to be achieved in another way.
Again, any help would be appreciated