Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / October 2005

Tip: Looking for answers? Try searching our database.

send object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alec Green - 12 Oct 2005 18:21 GMT
Hi

I have set up a macro using the send object function, to send a report by
email, which works fine ater I enter a email address in the To: section -
however I would the recipient to be a field on my report.

Thanks

Alec
Steve Schapel - 12 Oct 2005 18:42 GMT
Alec,

You won't be able to reference a control in the report itself, but if
you have the email address in a form which is open at the time the macro
is run, you can use this syntax in the To argument of the SendObject
macro...
 =[Forms]![NameOfForm]![NameOfEmailControl]

Signature

Steve Schapel, Microsoft Access MVP

> Hi
>
[quoted text clipped - 5 lines]
>
> Alec
KARL DEWEY - 12 Oct 2005 18:43 GMT
Try this in the TO line --
=[Reports]![lYourReportName]![YourReportField]

> Hi
>
[quoted text clipped - 5 lines]
>
> Alec
Alec Green - 12 Oct 2005 19:02 GMT
Thanks Karl, but it does not work!

> Try this in the TO line --
> =[Reports]![lYourReportName]![YourReportField]
[quoted text clipped - 8 lines]
>>
>> Alec
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.