|
我在 Local Notebook 里用 VB6 connect 去 UBS DBF,成功!我的connection 是这样子的:
Set DB = New ADODB.Connection
DB.CursorLocation = adUseClient
DB.ConnectionTimeout = 0
CStr = "Provider=MSDASQL.1;Driver=Microsoft Visual Foxpro Driver;SourceDB=" & vUBSPath & ";SourceType=DBF;WorkArounds2=24;"
DB.Open CStr
Set rs = New ADODB.Recordset
tSQL = "SELECT * FROM GLPOST WHERE CREDITAMT> 0 ORDER BY REFNO"
rs.Open tSQL, DB, adOpenStatic, adLockReadOnly
With rs
....
....
....
....
End With
可是,什么我一搬过去 Network Environment 时,一跑到 rs.Open tSQL, DB, adOpenStatic, adLockReadOnly 就会出现 Data Provider or other service returned an E_FAIL status 的 message? 过后就跳出来了。
[ 本帖最后由 nillwong 于 27-4-2007 11:39 AM 编辑 ] |
|