Hi Folks,
My form has a field for Year Date and another for Record Number. My first record needs to begin with 1 on Oct. 1st and auto reset to 1 each Oct 1st with the new fiscal year. Auto changing the fiscal year is a snap. Auto resetting the record count seems to allude me everyone else. Anyone have any idea how to auto reset the record count? Thanks in advance for any help.
If Date < DateSerial(Year(Date), 10, 0) Then YearDate = Year(Date)
If Date > DateSerial(Year(Date), 10, 0) Then YearDate = Year(Date) + 1
If Date > DateSerial(Year(Date), 10, 0) And ID = DLookup("ID", "tblYearDate", ID > "") Then
'ID = Nz(DMax("ID", "tblYearDate")) = 1
End If
ID = Nz(DMax("ID", "tblYearDate")) + 1
End Sub
My form has a field for Year Date and another for Record Number. My first record needs to begin with 1 on Oct. 1st and auto reset to 1 each Oct 1st with the new fiscal year. Auto changing the fiscal year is a snap. Auto resetting the record count seems to allude me everyone else. Anyone have any idea how to auto reset the record count? Thanks in advance for any help.
If Date < DateSerial(Year(Date), 10, 0) Then YearDate = Year(Date)
If Date > DateSerial(Year(Date), 10, 0) Then YearDate = Year(Date) + 1
If Date > DateSerial(Year(Date), 10, 0) And ID = DLookup("ID", "tblYearDate", ID > "") Then
'ID = Nz(DMax("ID", "tblYearDate")) = 1
End If
ID = Nz(DMax("ID", "tblYearDate")) + 1
End Sub