Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 13th, 2005, 09:06 PM
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error when using TransferDatabase

Hi,

I get a run time error '2507', "The type isn't an installed database type or doesn't support the operation you chose.", when trying to execute the following code:

DoCmd.TransferDatabase acLink, , strDatabaseName, , "tblLogShip", "tblLogShip"

My desire is to link the table "tblLogShip", which is contained in another .mdb database whose name is contained in the variable strDatabaseName. I have checked and rechecked all of the variables at run-time and can't find anything amiss. Anyone else come up against this?
Reply With Quote
  #2 (permalink)  
Old November 14th, 2005, 08:58 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Why are you using this method to link the database? Can't you do this using Insert>Table>Link Table?

Did you put the proper path to the file in your strDatabaseName variable? Is the other database in a later format than the one you are working in?

mmcdonal
Reply With Quote
  #3 (permalink)  
Old November 14th, 2005, 06:09 PM
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I need to link to this table (and one other) at application startup because the database will be run in different locations, with different paths to the linked tables on each local machine. Each of the linked tables may also change independently of the calling application. The aim of the startup routine is to link to the appropriate tables stored in the application's parent directory, wherever that may be (this is determined by a seperate routine) and then create a union query to extract the data from both tables for presentation in a form.

The full path of the database I wish to link to is contained in the variable 'strDatabaseName' and all databases are in Access2000 format.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
using DoCmd.TransferDatabase in VB gsurjit VB How-To 2 May 18th, 2006 10:52 PM
transferdatabase help clowns119 Access VBA 0 February 19th, 2005 11:57 AM
TransferDatabase Macro jmss66 Access 13 January 21st, 2005 11:22 AM
DoCmd.TransferDatabase poonjabba Access VBA 1 August 19th, 2003 07:57 PM



All times are GMT -4. The time now is 08:07 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.