Number help

sysop470

Registered User.
Local time
Yesterday, 23:28
Joined
Mar 25, 2005
Messages
87
Hi.

I have the following code after update

For intCnt = 1 To 12000
rst.FindFirst "[reqno]=" & intCnt
If rst.NoMatch Then
Me.ReqNo = intCnt
DoCmd.RunCommand acCmdSaveRecord

My problem is that on the 1st day of every year it continue get the next number, and not begins from no 1 again.

Can someone helps please.
Thanks
 
You must exit the loop then. Sounds like that link will do what you want.
 
Thanks again, but the problem that i allready have 5000 records entered for this year 2009 so i think i cannot change the coding.
You must exit the loop then. Sounds like that link will do what you want.
 
The technique listed should get the highest existing number and add one, and will automatically adjust at the beginning of the year.
 

Users who are viewing this thread

Back
Top Bottom