Solved

Microsoft Access 2007 - Trigger a Access Report from Word

Posted on 2011-09-28
1
264 Views
Last Modified: 2012-05-12
Hi Experts,

I need assistance with triggering a Basic Access Report from MS Word via a Hyperlink.
By Clicking on the hyperlink, this will automatically run a pre-defined report and display the generated report.

Is this possible?

Many thanks.
0
Comment
Question by:starfishjen
1 Comment
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 36716052
You can call Access from the commandline with a Macro. That Macro could then run your report.

So your hyperlink in Word could point to this:

"full path to your Access database /x NameOfYourMacro"

You'd have to add a Macro to the Access database, and then setup that Macro to open your report.

I'm not sure if Word has the same syntax, but in Access you can use FollowHyperlink:

Application.FollowHyperlink ""full path to your Access database /x NameOfYourMacro"

Note that if your Access database has a startup form or Macro, this will run in addition to the Macro you specify above, so you may find this to be not usable. If so, you'll have to automate Access to do this, which is a bit more difficult.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Modal form 11 30
Delete QueryDef IF it Exists: Access VBA 5 34
Calculate Time acces 2010 12 28
DCount Type Mismatch 2 22
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question