C
CW
Each time we log a new inquiry, using our "Main" form, a new ref number is
created automatically by means of the following code on the Before Insert
event:
Private Sub Form_BeforeInsert(Cancel As Integer)
Me.Ref = Nz(DMax("[Ref]", "[Inquiries]")) + 1
Me.Dirty = False
End Sub
We started our system on 1st October last year and as it is 2007 we are
using a number sequence that started at 70001.
On 1st October we will want this to restart from 80001, for the 2008
financial year.
Should I simply go into the Inquiries table on 1st October and manually log
a dummy inquiry using reference 80000, so that when somebody adds the next
real inquiry the system will use 80001, and onwards from there?
Seems a bit crude but I guess it would do the job - or is there some problem
I haven't thought of, or any more "elegant" way of doing it??
Many thanks for your advice
CW
created automatically by means of the following code on the Before Insert
event:
Private Sub Form_BeforeInsert(Cancel As Integer)
Me.Ref = Nz(DMax("[Ref]", "[Inquiries]")) + 1
Me.Dirty = False
End Sub
We started our system on 1st October last year and as it is 2007 we are
using a number sequence that started at 70001.
On 1st October we will want this to restart from 80001, for the 2008
financial year.
Should I simply go into the Inquiries table on 1st October and manually log
a dummy inquiry using reference 80000, so that when somebody adds the next
real inquiry the system will use 80001, and onwards from there?
Seems a bit crude but I guess it would do the job - or is there some problem
I haven't thought of, or any more "elegant" way of doing it??
Many thanks for your advice
CW