Dim db As DAO.Database
Dim rec, rec1 As Recordset
Dim zj, zj1 As Boolean
systime.Caption = Format(Now(), "yyyy年m月d日 AMPM hh:mm:ss")
Set db = CurrentDb()
Set rec = db.OpenRecordset("安全库存超限预警", dbOpenDynaset)
If rec.RecordCount <> 0 Then
zj = True
End If
[B]Set rec1 = db.OpenRecordset("安全库存告急预警", dbOpenDynaset)[/B]
If rec1.RecordCount <> 0 Then
zj1 = True
End If
If zj = True Or zj1 = True Then
warning.Visible = Not warning.Visible '使得标签闪烁,引起注意
Else
warning.Visible = False
End If
Dim db As DAO.Database
Dim rec As DAO.Recordset, rec1 As DAO.Recordset
Dim zj As Boolean, zj1 As Boolean
systime.Caption = Format(Now(), "yyyy年m月d日 AMPM hh:mm:ss")
Set db = CurrentDb()
Set rec = db.OpenRecordset("安全库存超限预警", dbOpenDynaset)
If rec.RecordCount <> 0 Then
zj = True
End If
Set rec1 = db.OpenRecordset("安全库存告急预警", dbOpenDynaset)
If rec1.RecordCount <> 0 Then
zj1 = True
End If
If zj = True Or zj1 = True Then
warning.Visible = Not warning.Visible '使得标签闪烁,引起注意
Else
warning.Visible = False
End If