hey. this is my code:
If paid = inst Then
'Me.submit.Enabled = False
Else if DateDiff("d", StartDate, now) >= 6 Then
Me.submit.Enabled = False
Else
Me.submit.Enabled = True
End If
i want to disable a button if the days between now and the startdate is less than 6.
the first option works but the date section doesnt. Suggestions ??
If paid = inst Then
'Me.submit.Enabled = False
Else if DateDiff("d", StartDate, now) >= 6 Then
Me.submit.Enabled = False
Else
Me.submit.Enabled = True
End If
i want to disable a button if the days between now and the startdate is less than 6.
the first option works but the date section doesnt. Suggestions ??