S
Song Su
I intentionally tried both conditions but MsgBox does not start. Where did I
do wrong?
Private Sub cboFrom_BeforeUpdate(Cancel As Integer)
If Me.From < DMin("TimeIn", "qryVisitData") Then
MsgBox ("FROM cannot be earlier than downloaded data range")
Cancel = True
End If
If Me.From > Me.To Then
MsgBox ("FROM must be same or earler than TO")
Cancel = True
End If
End Sub
do wrong?
Private Sub cboFrom_BeforeUpdate(Cancel As Integer)
If Me.From < DMin("TimeIn", "qryVisitData") Then
MsgBox ("FROM cannot be earlier than downloaded data range")
Cancel = True
End If
If Me.From > Me.To Then
MsgBox ("FROM must be same or earler than TO")
Cancel = True
End If
End Sub