应当是你的程序有问题。 timer事件能和你的do while 配合好? 应当是事务出了嵌套错误了吧?
我没看懂。 Do While True If (EXCEL文件读完) Then Exit Do End If If HasError=True Then Exit Do End If conn.BeginTrans 调用一个通用函数,此函数通过执行存储过程来完成写数据库的操作。 Loop
这段代码是什么地方执行的?
把 Do While True If (EXCEL文件读完) Then Exit Do End If If HasError=True Then Exit Do End If conn.BeginTrans 调用一个通用函数,此函数通过执行存储过程来完成写数据库的操作。 Loop 改为: conn.BeginTrans 调用一个通用函数,此函数通过执行存储过程来完成写数据库的操作。 Do While True If (EXCEL文件读完) Then Exit Do End If If HasError=True Then Exit Do End If Loop
timer事件能和你的do while 配合好?
应当是事务出了嵌套错误了吧?
Do While True
If (EXCEL文件读完) Then
Exit Do
End If
If HasError=True Then
Exit Do
End If
conn.BeginTrans
调用一个通用函数,此函数通过执行存储过程来完成写数据库的操作。
Loop
这段代码是什么地方执行的?
Do While True
If (EXCEL文件读完) Then
Exit Do
End If
If HasError=True Then
Exit Do
End If
conn.BeginTrans
调用一个通用函数,此函数通过执行存储过程来完成写数据库的操作。
Loop
改为:
conn.BeginTrans
调用一个通用函数,此函数通过执行存储过程来完成写数据库的操作。
Do While True
If (EXCEL文件读完) Then
Exit Do
End If
If HasError=True Then
Exit Do
End If
Loop