Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel VBA to access the FoxPro free table thought out by the
Message
From
05/01/2001 02:52:30
 
 
To
All
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Excel VBA to access the FoxPro free table thought out by the
Miscellaneous
Thread ID:
00459683
Message ID:
00459683
Views:
62
VBA CODE
--------------------------------------------------------------------------------

Public conn As New ADODB.connection
Set conn = New ADODB.connection

conn.Open "Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=F:\backup;Exclusive=no;"

Set rsttemp = conn.OpenSchema("SELECT expichdf.*, expictxf.* FROM expichdf INNER JOIN expictxf ON expichdf.oh_no = expictxf.od_no WHERE oh_no='" & txtQuotationNumber.text & "'", adOpenDynamic)

--------------------------------------------------------------------------------


what's wrong at the Set rsttemp = conn.OpenSchema("SELECT expichdf.*, expictxf.* FROM expichdf INNER JOIN expictxf ON expichdf.oh_no = expictxf.od_no WHERE oh_no='" & txtQuotationNumber.text & "'", adOpenDynamic)
this line the VBA return "DATA TYPE MISMATCH"

PLEASE HELP ME !
^_^
Next
Reply
Map
View

Click here to load this message in the networking platform