是这样的,我想判断是否有这条记录。 如果有就存入变量ne,但下面的程序不行啊,帮我改一下了,谢谢! Set rs = cn.Execute(sqla) If rs.EOF Then ne = 0 Else ne = rs![name] End If 因为当没有这条记录时,ne=rs![name]是会提示会空。 但我已经判断过了,如果为空就为0吗,各位UP下,谢谢!
Set rs = cn.Execute(sqla)
If rs.RecordCount<1 Then
ne = 0
Else
ne=rs![name]
End If
我调试了一下但为什么rs.RecordCountp这句会出错
operation is not allowed when the object is close
这是什么原因呢??请指教