J
JackyWen
I want to use VBA to import/link VFP dbf to Access. And try to use below
coding:
DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=PROD;" & _
"SourceDB=E:\work\Access\;SourceType=DBF;Exclusive=No;" & _
"BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes", _
acTable, "temp.dbf", "acc_temp", False
But a run-time error (3146) is popped up.
I try to import/ link the dbf file by manual. Click "File->Get External Data-
Would any one please advise what the problem is?
Thank you very much.
JW
coding:
DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=PROD;" & _
"SourceDB=E:\work\Access\;SourceType=DBF;Exclusive=No;" & _
"BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes", _
acTable, "temp.dbf", "acc_temp", False
But a run-time error (3146) is popped up.
I try to import/ link the dbf file by manual. Click "File->Get External Data-
It does work.Import (ODBC Database)->Machine Data Source (PROD)..."
Would any one please advise what the problem is?
Thank you very much.
JW