M
Matt
I am using access 2003 in XPsp2
I have a log that assigns consecutive numbers preceded by a 2 digit year.
(ex 10-001) On Jan. 1 the number was supossed to change and reset from
09-690 (last number of the year) to 10-001. This did not happen. The year
changed but the number carried over showing 10-691.
Here is the VB code that was used for this change I think. I did not write
it and my VB knowledge is poor.
Me.txtIncrNum.Enabled = True
Me.txtIncrNum.SetFocus
Me.txtIncrNum.Text = Nz(DMax("[IncrNum]", "[tblincidents]", _
"Year([datefield]) = " & Year(Date)), 0) + 1
Thanks for your help.
I have a log that assigns consecutive numbers preceded by a 2 digit year.
(ex 10-001) On Jan. 1 the number was supossed to change and reset from
09-690 (last number of the year) to 10-001. This did not happen. The year
changed but the number carried over showing 10-691.
Here is the VB code that was used for this change I think. I did not write
it and my VB knowledge is poor.
Me.txtIncrNum.Enabled = True
Me.txtIncrNum.SetFocus
Me.txtIncrNum.Text = Nz(DMax("[IncrNum]", "[tblincidents]", _
"Year([datefield]) = " & Year(Date)), 0) + 1
Thanks for your help.