I have an Access 2002 application where I link to several Visual Fox Pro tables. I want to be able to do the link with a Docmd.TransferDatabase.
The ODBC connection string looks like this on my current linked table:
ODBC;DSN=Visual FoxPro Tables;SourceDB=h:\Programs\Data;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;;TABLE=prckhist
My DoCmd statement looks like this:
DoCmd.TransferDatabase acLink, "ODBC Database", _
"ODBC;DSN='Visual FoxPro Tables';SourceDB=h:\Programs\Data;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;;TABLE=prckhist", acTable, "h:\Programs\Data\prckhist.dbf", "prckhist"
When I run the DoCmd, I am getting a message that says: ODBC connection to "Visual FoxPro Tables" failed. Do I have some syntax wrong? What else could the problem be?
The ODBC connection string looks like this on my current linked table:
ODBC;DSN=Visual FoxPro Tables;SourceDB=h:\Programs\Data;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;;TABLE=prckhist
My DoCmd statement looks like this:
DoCmd.TransferDatabase acLink, "ODBC Database", _
"ODBC;DSN='Visual FoxPro Tables';SourceDB=h:\Programs\Data;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;;TABLE=prckhist", acTable, "h:\Programs\Data\prckhist.dbf", "prckhist"
When I run the DoCmd, I am getting a message that says: ODBC connection to "Visual FoxPro Tables" failed. Do I have some syntax wrong? What else could the problem be?