B
Bill Nguyen
Every time I jumped to a new month, the app kept popping up the message box
for subsequent months until 2050! If I stayed within the same month (current
month), it worked fine.
Please take a look at the following codes. Nothing special about it.
Please help!!
Bill
Private Sub dtPicker1_ValueChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles dPicker1.ValueChanged
If dPicker1.Value >= Today Then
Beep()
MsgBox("Invalid Sales date: " & dPicker1.Value & vbCrLf & _
"Please choose a valid Sales date.")
Exit Sub
Else
Call DoLoadCombo()
End If
End Sub
for subsequent months until 2050! If I stayed within the same month (current
month), it worked fine.
Please take a look at the following codes. Nothing special about it.
Please help!!
Bill
Private Sub dtPicker1_ValueChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles dPicker1.ValueChanged
If dPicker1.Value >= Today Then
Beep()
MsgBox("Invalid Sales date: " & dPicker1.Value & vbCrLf & _
"Please choose a valid Sales date.")
Exit Sub
Else
Call DoLoadCombo()
End If
End Sub