Share via

run-time error 3078 when using DoCmd.TransferDatabase acLink with linked tables

Anonymous
2010-11-14T12:03:13+00:00

Hi,

I have 2 access database:

  • Access database B contains linked tables towards an SQL Server Database
  • Access database A tries to link the linked tables from B.

I do this using this code in access A:

DoCmd.TransferDatabase acLink, "Microsoft Access", "c:\myaccessB.mdb", acTable, "MyTableName", "MyTableName"

This is the error I get:

Run-time error '3078'

The Microsoft Access database engine cannot find the input table or query MyTableName. Make sure it exists and that its name is spelled correctly

This code works fine with tables that are local in access database B, but not on linked tables.

Anybody has any idea?

Thanks a lot i nadvance, and kind regards,

Pieter

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2010-11-14T12:15:06+00:00

You can't link to a linked table; you have to link to the SQL Server tables directly.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful