Using ACCESS '97
Hi there. Am wondering what would be the best way for Access to recognize that each of the following fields have changed and drop in a date in the DATE_NOT_REQ control. It seems that after making an entry in each of the fields, the DATE_NOT_REQ control does not capture today's date. Have any suggestions for me?
Thank you VERY much for your assistance.
Private Sub Form_AfterUpdat e()
Dim FLAG_2 As Integer
If Not IsNull(Me.Commu nicated_Date) Then
FLAG_2 = 1
End If
If Not IsNull(Me.Descr ibeInjury) Then
FLAG_2 = 1
End If
If Not IsNull(Me.BODY_ PART_ID) Then
FLAG_2 = 1
End If
If Not IsNull(Me.F_MEA SURES!DATE_COMP L) Then
FLAG_2 = 1
End If
If Not IsNull(Me.F_MEA SURES!FINISHED) Then
FLAG_2 = 1
End If
If Not IsNull(Me.F_SME _INVEST_TEAM) Then
FLAG_2 = 1
End If
If Not IsNull(Me.F_SME _INVEST_TEAM) Then
FLAG_2 = 1
End If
If Not IsNull(Me.INV_T EAM_REVIEWED) Then
FLAG_2 = 1
End If
If FLAG_2 = 8 Then
Me.DATE_NOT_REQ = Now()
Me.DATE_NOT_REQ .Locked = True
End If
End Sub
Hi there. Am wondering what would be the best way for Access to recognize that each of the following fields have changed and drop in a date in the DATE_NOT_REQ control. It seems that after making an entry in each of the fields, the DATE_NOT_REQ control does not capture today's date. Have any suggestions for me?
Thank you VERY much for your assistance.
Private Sub Form_AfterUpdat e()
Dim FLAG_2 As Integer
If Not IsNull(Me.Commu nicated_Date) Then
FLAG_2 = 1
End If
If Not IsNull(Me.Descr ibeInjury) Then
FLAG_2 = 1
End If
If Not IsNull(Me.BODY_ PART_ID) Then
FLAG_2 = 1
End If
If Not IsNull(Me.F_MEA SURES!DATE_COMP L) Then
FLAG_2 = 1
End If
If Not IsNull(Me.F_MEA SURES!FINISHED) Then
FLAG_2 = 1
End If
If Not IsNull(Me.F_SME _INVEST_TEAM) Then
FLAG_2 = 1
End If
If Not IsNull(Me.F_SME _INVEST_TEAM) Then
FLAG_2 = 1
End If
If Not IsNull(Me.INV_T EAM_REVIEWED) Then
FLAG_2 = 1
End If
If FLAG_2 = 8 Then
Me.DATE_NOT_REQ = Now()
Me.DATE_NOT_REQ .Locked = True
End If
End Sub
Comment