Select Case between two dates VBA
I am trying to change the visibility of a label depending on a date in the Next_Payment_Due text box. I have used the select case method eg:
Say the date today is 05/01/10, and a date in the text box was 08/01/10 I would want the visibilty true.
Thanks in advance,
Dan
I am trying to change the visibility of a label depending on a date in the Next_Payment_Due text box. I have used the select case method eg:
Code:
Select Case Next_Payment_Due.Value
Case Is >= Date - 25
PDS.Visible = True
Case Is <= Date + 5
Case Else
PDS.Visible = False
End Select
Thanks in advance,
Dan
Last edited: