vb时间查找?
PrivateSubTimer1_Timer()DimRsAsADODB.RecordsetSetRs=ExcSQL("select*from教室where下课时间='"...
Private Sub Timer1_Timer()
Dim Rs As ADODB.Recordset
Set Rs = ExcSQL("select * from 教室 where 下课时间='" & Format(Now, "HH:MM") & "'")
While Not Rs.EOF
Rs.Fields("下课时间") = ""
Rs.Fields("状态") = "下课"
Rs.MoveNext
Wend
Rs.Close
End Sub
Timer1.Interval=1000,怎么查找不到啊?
Set Rs = ExcSQL("select * from 教室 where 下课时间 between '" & Format(Now, "HH:MM") & "'") ,也查找不到? 展开
Dim Rs As ADODB.Recordset
Set Rs = ExcSQL("select * from 教室 where 下课时间='" & Format(Now, "HH:MM") & "'")
While Not Rs.EOF
Rs.Fields("下课时间") = ""
Rs.Fields("状态") = "下课"
Rs.MoveNext
Wend
Rs.Close
End Sub
Timer1.Interval=1000,怎么查找不到啊?
Set Rs = ExcSQL("select * from 教室 where 下课时间 between '" & Format(Now, "HH:MM") & "'") ,也查找不到? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询