I am trying to autopopulate a field (JobNumber) in a table (JobDatabase). This field is a primary key for the table and I want to force it to be numbered per our job numbering system. Also I would like it to automatically assign sequentially when new records are created.
Our job numbering system is a hybrid which is in the following format "MMYY###".
For example:
New record is created in January 2011 and is the 4th one created for the month. The job # would be 0111004.
The next record created in January of 2011 would be numbered 0111005.
The first record for the following month (February 2011) would be 0211001.
How would I do this in MS Access/VBA?
Our job numbering system is a hybrid which is in the following format "MMYY###".
For example:
New record is created in January 2011 and is the 4th one created for the month. The job # would be 0111004.
The next record created in January of 2011 would be numbered 0111005.
The first record for the following month (February 2011) would be 0211001.
How would I do this in MS Access/VBA?
Comment