J
Jim Meyer
I created two fields in my table. I then used the
following example from applecore99.com which is great but
it has stopped working in my database. The point is to
create a order number. It works until the serialid field
gets to 10 but then continually enters 10 into the field
of a new record over and over. 1 - 9 works great.
Private Sub Form_BeforeInsert(Cancel As Integer)
Me!SERIALID = Nz(DMax
("[SerialID]", "[Search]", "[YearEntry]=Year(Date())"), 0)
+ 1
Me!YEARENTRY = Year(DATE)
End Sub
Please Help.
Jim Meyer
following example from applecore99.com which is great but
it has stopped working in my database. The point is to
create a order number. It works until the serialid field
gets to 10 but then continually enters 10 into the field
of a new record over and over. 1 - 9 works great.
Private Sub Form_BeforeInsert(Cancel As Integer)
Me!SERIALID = Nz(DMax
("[SerialID]", "[Search]", "[YearEntry]=Year(Date())"), 0)
+ 1
Me!YEARENTRY = Year(DATE)
End Sub
Please Help.
Jim Meyer