Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Microsoft Access 2007 - Trigger a Access Report from Word

Posted on 2011-09-28
1
Medium Priority
?
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

721 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