sq1 = "select count(*) from UA#BO_ProcessPara where MethodName = N'"& HMIRuntime.Tags("MethodName").read &"' and MethodType = N'"& HMIRuntime.Tags("MethodType").read &"'"
Set objRecordset = objConnection.execute(sq1)
HMIRuntime.Tags("MethodCountLine").Write objRecordset.Fields(0).Value
For i = 0 To m
objRecordset.MoveNext
Next
什么作用,有错误吗