Need help with TransferDatabase comand, please.

F

FatMan

Hi all:
I am looking for help with the TransferDatabase command.

When the line of code below is executed I get an error message saying:

"The Microsoft Jet databse engine cannot find the input table or query
'tblGrowerProfile'. Make sure it exists and that its name is spelled
correctly."

Line of code:
DoCmd.TransferDatabase acImport, "Microsoft Access", "C:\Program
Files\SprayRecGrower09V1a\SprayRecGrower09V1a.mdb", acTable, _
"tblGrowerProfile", "tblGrowerProfile"

Background:
- the table is from an Access table

- the full path to and name of the database that the table is bing import
from is C:\Program FIles\SprayRecGrower09V1a\SprayRecGrower09V1a.mdb

- the table name to be imported is tblGrowerProfile and I want it to be
called the same in the current database

Can anyone offer any help as to why this line of code will not work?

All help is greatly appreciated.

Thanks,
FatMan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top