clientuser
Programmer
I have code that is suppose to tell if a certain amount of days have passed, if the days in question (in this case 90 days) have passed after running a query the form would show a label letting the user know its ok to call the client.. if not then the label simply says not enough time has passed..
Here is the code I am using..
------------------------------------------------------------
Private Sub Form_Load()
Dim HoldDate As String
HoldDate = DateDiff("d", [Date/Time], Date)
MsgBox HoldDate 'just for debuggin at the moment
If HoldDate > 90 Then
Label11.Visible = True
Else
If HoldDate < 90 And Not 0 Then
Label11.Visible = True
Label11.Caption = "---> Not enough time as passed <---"
[Client ID or name].Enabled = False
[Date/Time].Enabled = False
End If
End If
the problem is, if the results from the datediff are 0 it still runs the code below the if statement..
any suggestions?
Here is the code I am using..
------------------------------------------------------------
Private Sub Form_Load()
Dim HoldDate As String
HoldDate = DateDiff("d", [Date/Time], Date)
MsgBox HoldDate 'just for debuggin at the moment
If HoldDate > 90 Then
Label11.Visible = True
Else
If HoldDate < 90 And Not 0 Then
Label11.Visible = True
Label11.Caption = "---> Not enough time as passed <---"
[Client ID or name].Enabled = False
[Date/Time].Enabled = False
End If
End If
the problem is, if the results from the datediff are 0 it still runs the code below the if statement..
any suggestions?