Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access External data > Using ODBC im**...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 10826 of 11313
Post > Topic >>

Using ODBC im****t

by "JackyWen" <u45006@[EMAIL PROTECTED] > Jul 24, 2008 at 07:25 AM

I want to use VBA to im****t/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 im****t/ link the dbf file by manual. Click "File->Get External
Data-
>Im****t (ODBC Database)->Machine Data Source (PROD)..."
It does work. 

Would any one please advise what the problem is?
Thank you very much.

JW
 




 2 Posts in Topic:
Using ODBC import
"JackyWen" <  2008-07-24 07:25:19 
Re: Using ODBC import
"JackyWen via Access  2008-07-25 09:16:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 19:32:52 CST 2008.