Solved

Microsoft Access 2007 - Trigger a Access Report from Word

Posted on 2011-09-28
1
263 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Format vertical text in Access 2016 3 30
Direct Mail software 4 42
Query to summarise data Like Pivot Table 3 28
Operation must use an updatable query 4 23
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

929 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now