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 / General 1 / March 2006

Tip: Looking for answers? Try searching our database.

Use SendObject Property to email designated person who is listed in a table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kyle.j.petersen@gmail.com - 30 Mar 2006 23:56 GMT
I have a form where I select a business and I need to send a report to
a person who is tied to that business in one of my tables.  How can I
use a command button that is tied to a macro to Send a report to the
specified person?
Allen Browne - 31 Mar 2006 07:08 GMT
In the lower pane of the macro design window, try using DLookup() in the To
argument.

For example, if the email address is found in MyEmailField in Table1, where
the ID is 99, use:
   DLookup("MyEmailField", "Table1", "ID=99")

That works with SendObject in code. I'm not sure if it works in the macro.

If you need help with DLookup(), see:
   Getting a value from a table: DLookup()
at:
   http://allenbrowne.com/casu-07.html

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

>I have a form where I select a business and I need to send a report to
> a person who is tied to that business in one of my tables.  How can I
> use a command button that is tied to a macro to Send a report to the
> specified person?
 
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.