Microsoft Access 2003
Hi there, am stuck with something that I am not sure on how to get done. I am attempting to have 3 check boxes and have 3 date fields. I need to have each date field be populated with an independent date when the end-user clicks on each of the 3 check boxes.
CB_STARTED
STARTED_DATE
CB_COMPLETED
COMPLETED_DATE
CB_CLOSED
CLOSED_DATE
I have used an After Update function at the form level, but it seems that when I place a checkmark in the 2nd check box, then both fields appear with the latest date. Is there a way to have a unique date appear for each of the 3 check boxes? You see, I can place a checkmark in the first check box today, then tomorrow, I can place a checkmark in the 2nd check box and so on. Because of this, I need to ensure that each date field will have their own unique date.
[CODE = VBA]
Private Sub Form_AfterUpdat e()
If Not IsNull(Me.CB_ST ARTED) Then
Me.STARTED_DATE .Value = Now()
End If
If Not IsNull(Me.CB_CO MPLETED) Then
Me.COMPLETED_DA TE.Value = Now()
End If
If Not IsNull(Me.CB_CL OSED) Then
Me.CLOSED_DATE. Value = Now()
End If
End Sub
[/CODE]
Thank you VERY MUCH for your assistance
Hi there, am stuck with something that I am not sure on how to get done. I am attempting to have 3 check boxes and have 3 date fields. I need to have each date field be populated with an independent date when the end-user clicks on each of the 3 check boxes.
CB_STARTED
STARTED_DATE
CB_COMPLETED
COMPLETED_DATE
CB_CLOSED
CLOSED_DATE
I have used an After Update function at the form level, but it seems that when I place a checkmark in the 2nd check box, then both fields appear with the latest date. Is there a way to have a unique date appear for each of the 3 check boxes? You see, I can place a checkmark in the first check box today, then tomorrow, I can place a checkmark in the 2nd check box and so on. Because of this, I need to ensure that each date field will have their own unique date.
[CODE = VBA]
Private Sub Form_AfterUpdat e()
If Not IsNull(Me.CB_ST ARTED) Then
Me.STARTED_DATE .Value = Now()
End If
If Not IsNull(Me.CB_CO MPLETED) Then
Me.COMPLETED_DA TE.Value = Now()
End If
If Not IsNull(Me.CB_CL OSED) Then
Me.CLOSED_DATE. Value = Now()
End If
End Sub
[/CODE]
Thank you VERY MUCH for your assistance
Comment