急,在线等,在数据窗口中用ImportFile时出错?
错误提示如下:
SQLSTATE = S0002
[Microsoft][ODBC Visual FoxPro Driver]File 'bm03.dbf' does not exist.
No changes made to database.
INSERT INTO bm03 ( xxk, xm)values('111','lili')
同时在数据窗口中可以看到数据,但是提示"信息数据保存时出错",这是什么错误啊?问题出在哪里呢?
相关代码如下:
ll_rows = dw_2.ImportFile(ls_uploadFile)
if ll_rows <= 0 then
ROLLBACK USING SQLCA;
MessageBox("提示", '导入数据时错误,请检查DBF文件版本及表结构,错误代码:' + String(ll_rows), StopSign!)
Else
st_2.text = "正在保存数据"
IF dw_2.Update() <> 1 THEN
ROLLBACK USING SQLCA;
MessageBox("提示","信息数据保存时出错")
ELSE
Commit;
MessageBox("提示","信息数据已成功保存")
End If