If Check3.Value = vbChecked Then
finddata1 = Format(CDate(Combo1.Text & "-" & _
Combo2.Text & "-" & Combo3.Text), "yyyy-mm-dd")
finddata2 = Format(CDate(Combo4.Text & "-" & _
Combo5.Text & "-" & Combo6.Text), "yyyy-mm-dd")
query = "select * from sbwx where weixiutime between #" & finddata1
query = query & "# and #" & finddata2 & "#"
Set rs = TransactSQL(query)
If rs.EOF = True Then '判断是否存在设备名称
MsgBox "维修时间不存在!请重新输入!", vbOKOnly + vbExclamation, "警告"
End If
这是查询维修记录的源代码,比如是2003-1-2日的维修记录,而我设定从2003-1-1到2003-1-5时,查询结果说无记录,这是怎么回事呢? 请帮忙看看!
[求助]关于记录查询的问题