Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试了以下代码:
rs5.Open "select Duration from onduty where User_id='" & rs1!User_id & "' and date=#" & Date & "#", cn, adOpenDynamic, adLockOptimistic
其中rs5,rs1被声明为ADODB.Recordset.
rs5
rs1
ADODB.Recordset
我需要找到rs5执行查询后的位置是否为空。
你试过了吗 :
If rs5.EOF Then MsgBox "null"