Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import table from another databse 1

Status
Not open for further replies.

brau

Programmer
Feb 15, 2001
31
US
I have an access project and am trying to import a table from
access97 db. I can import using file/import from the menu but can't
using the following code.

DoCmd.TransferDatabase acImport, , "\\Gaylord1
\Construction\ESTIMATES\MC2\reports\tmpansr.mdb",
acTable, "EDF", "EDF"

I get the following run-time error 2507, "The type isn't an installed
database type or doesn't support the operation you chose."

I there a reference I need to install? I can't find any info on this
error.

thanks, bob
 
try this:

DoCmd.TransferDatabase acImport,"Microsoft Access", "\\Gaylord1
\Construction\ESTIMATES\MC2\reports\tmpansr.mdb",
acTable, "EDF", "EDF"

ide (-:
 
Perfect. I guess I shouldn't assume that access new that "Microsoft Access" was the default for this field.

Thank you for your help ide.

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top