請問DBF
DBF 檔 放 D:\DBF\Da5032.dbf
連線字串如下
isPath="D:\DBF\"
Provider=MSDASQL.1;Persist Security Info=False;Data Source=dBASE Files;Initial Catalog=" & isPath
Dim lrTemp As New ADODB.Recordset
DBF_Conn.CursorLocation = adUseServer
lsSQL = "select * from DA5032 Where d32_order='V810253' "
lrTemp.Open lsSQL, DBF_Conn, adOpenKeyset, adLockOptimistic
出現 ERR
[ODBC Dbase 驅動程式]參數太少,預期個數1
如果 where 條件有兩個如下:
lsSQL = "select * from DA5032 "& _
"where d32_order='V810253' AND Transfer='Y' "
出現 ERR
[ODBC Dbase 驅動程式]參數太少,預期個數2
那如果出現大量資料 是不是不能有 where 條件
請高手幫忙
arrow
arrow
    全站熱搜

    vbqa 發表在 痞客邦 留言(1) 人氣()