?
Solved

Copying a report from one Access file to another

Posted on 1999-01-12
4
Medium Priority
?
159 Views
Last Modified: 2010-05-18
Using VB (5) code, I need to copy an Access report from one file to another.  Is there anyway to do this?  If so, how?
0
Comment
Question by:clifABB
[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
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:mcix
ID: 1455769
There are a couple of ways to do this...

The simplest (From VB) is to create a reference to Access using Project References.  

Something like this:

Dim x As Access.Application
   
Set x = GetObject(, "Access.Application")
   
x.DoCmd.CopyObject "DestinationDBFullPath", "NameInDestination", acReport, "SOURCEREPORT"
   
Set x = Nothing

0
 
LVL 6

Author Comment

by:clifABB
ID: 1455770
mcix:
That did it.

Thanks, please resubmit for points.
0
 
LVL 4

Accepted Solution

by:
mcix earned 200 total points
ID: 1455771
Cool
0
 
LVL 6

Author Comment

by:clifABB
ID: 1455772
Thanks again.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

801 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