E
Erin
I need to create a unique ID number based on the date the record was
initiated. The ID number needs to begin at "1" with the start of each year
and then increase by "1" for each record added for that year. How do I do
this? My code right now:
Private Sub Status_AfterUpdate()
If IsNull(Me.[ID]) Then
Me.[ID] = Nz(DMax("[ID]", "tbl_FQInfo", "Year(InitiationDate) = " &
Year(InitiationDate))) + 1
End If
End Sub
Thanks!
initiated. The ID number needs to begin at "1" with the start of each year
and then increase by "1" for each record added for that year. How do I do
this? My code right now:
Private Sub Status_AfterUpdate()
If IsNull(Me.[ID]) Then
Me.[ID] = Nz(DMax("[ID]", "tbl_FQInfo", "Year(InitiationDate) = " &
Year(InitiationDate))) + 1
End If
End Sub
Thanks!