how to make a label show when 10 days before date is due

sspreyer

Registered User.
Local time
Today, 06:37
Joined
Nov 18, 2013
Messages
251
hi ,
all

right i'm trying to make a label show if the date in my next service field is 10 days till its due

this what I have on a on current form event this works great but would like the message to appear 10 days before the date is passed

Code:
If Me.NextService < Date Then
Me.overdue.Visible = True
Else
Me.overdue.Visible = False
End If

also tried this with no joy

Code:
If Me.NextService < Date <= 10 Then
Me.overdue.Visible = True
Else
Me.overdue.Visible = False
End If

thanks in advance

shane
 
You deduct 10 days from the Date() the same way you do it in Maths Shane.
 
hi

thanks worked great
but now how do I make it work on a range say 4 days up to 10 days before

Code:
If Me.NextService > Date - 10 Then
Me.overdue.Visible = True
Else
Me.overdue.Visible = False
End If
If Me.ExMask = True Then
Me.Combo74.Enabled = False
Else
Me.Combo74.Enabled = True
End If
thanks

shane
 

Users who are viewing this thread

Back
Top Bottom