4 replies
by proftech Accepted solution
by sgt_shultz Accepted solution
use the send method
here is an excerpt from access help
Automate sending a report snapshot in e-mail
Show All
Hide All
Note The information in this topic applies to Microsoft Office Access 2003, Access 2002, and Access 2000.
Create a macro (macro: An action or set of actions that you can use to automate tasks.).
How?
In the Database window (Database window: The window that appears when you open an Access database or an Access project. It displays shortcuts for creating new database objects and opening existing objects.), click Macros under Objects.
Click the New button on the Database window (Database window: The window that appears when you open an Access database or an Access project. It displays shortcuts for creating new database objects and opening existing objects.) toolbar.
Add an action (action: The basic building block of a macro; a self-contained instruction that can be combined with other actions to automate tasks. This is sometimes called a command in other macro languages.) to the macro.
How?
In the Macro window (Macro window: The window in which you create and modify macros.), click the first empty row in the Action column. If you want to insert an action between two action rows (action row: A row in the upper part of the Macro window in which you enter macro names, actions, conditions, and comments associated with a particular macro or macro group.), click the selector for the action row just below the row where you want to insert the new action, and then click Insert Row on the toolbar.
In the Action column, click the arrow to display the action list (action list: The list that appears when you click the arrow in the Action column of the Macro window.).
Click the action you want to use.
In the lower part of the window, specify arguments for the action, if any are required. For action arguments (action argument: Additional information required by some macro actions. For example, the object affected by the action or special conditions under which the action is carried out.) whose settings are a database object (database objects: An Access database contains objects such as tables, queries, forms, reports, pages, macros, and modules. An Access project contains objects such as forms, reports, pages, macros, and modules.) name, you can set the argument by dragging the object from the Database window to the action's Object Name argument box.
Type a comment for the action. Comments are optional.
To add more actions to the macro, move to another action row (action row: A row in the upper part of the Macro window in which you enter macro names, actions, conditions, and comments associated with a particular macro or macro group.) and repeat step 3. Access carries out the actions in the order you list them.
Add the SendObject action to the macro. For example: Argument Value
Object Type Report
Object Name Summary of Sales by Quarter
Output Format Snapshot Format
To All Northwind Traders; Shareholders
Cc none
Bcc none
Subject Quarterly Sales report
Message Text This is our best quarter in years!
Edit Message No
Run the macro each time you want to send the report snapshot (report snapshot: A file (.snp extension) that contains a high-fidelity copy of each page of an Access report. It preserves the two-dimensional layout, graphics, and other embedded objects of the report.).
by proftech Accepted solution
by morney Accepted solution
This discussion is closed to new replies.
Trending Peripheral posts
Sort by Trending