Hey everyone:
I am trying to use a DateDiff to have another field become true/false. It compares the employees start date verse today's date. If it is less than 24 months than the field becomes true, if it is greater 24 months than the field is false.
But it is not working. Any thoughts on what to do. Here is the code.
Private Sub Borrower_Current_Employer_Start_Date_AfterUpdate()
Dim dtEmploy As Date
Dim intTwoYears As Integer
dtEmploy = Me.Borrower_Current_Employer_Start_Date
intTwoYears = DateDiff("m", dtEmploy, Date)
If intTwoYears < 24 Then
frm_Employment_History.Visible = True
Else
frm_Employment_History.Visible = False
End If
End Sub
I am trying to use a DateDiff to have another field become true/false. It compares the employees start date verse today's date. If it is less than 24 months than the field becomes true, if it is greater 24 months than the field is false.
But it is not working. Any thoughts on what to do. Here is the code.
Private Sub Borrower_Current_Employer_Start_Date_AfterUpdate()
Dim dtEmploy As Date
Dim intTwoYears As Integer
dtEmploy = Me.Borrower_Current_Employer_Start_Date
intTwoYears = DateDiff("m", dtEmploy, Date)
If intTwoYears < 24 Then
frm_Employment_History.Visible = True
Else
frm_Employment_History.Visible = False
End If
End Sub