[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

Copying a report from one Access file to another

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
clifABB
Asked:
clifABB
  • 2
  • 2
1 Solution
 
mcixCommented:
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
 
clifABBAuthor Commented:
mcix:
That did it.

Thanks, please resubmit for points.
0
 
mcixCommented:
Cool
0
 
clifABBAuthor Commented:
Thanks again.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now