G
Guest
Hi,
I have a database that keeps track of part numbers. I have had help with
this database before, and so it will automatically create a part number
incrementing by one.
Now I am going to create a new table, for a different kind of part and would
like to find a way to include the current date in the number and still
increment by one. Could be an added dash number, then the basenumber could be
the current date, maybe?
Does anyone have a code to be able to do this?
Here is the code I am using without the date included.
Dim NextNumber As Integer
NextNumber = Nz(DMax("[Extension]", "ECR LOG", "[BaseNumber]='" &
Me.BASENUMBER & "'"), 0) + 1
Me.EXTENSION = NextNumber
I have a database that keeps track of part numbers. I have had help with
this database before, and so it will automatically create a part number
incrementing by one.
Now I am going to create a new table, for a different kind of part and would
like to find a way to include the current date in the number and still
increment by one. Could be an added dash number, then the basenumber could be
the current date, maybe?
Does anyone have a code to be able to do this?
Here is the code I am using without the date included.
Dim NextNumber As Integer
NextNumber = Nz(DMax("[Extension]", "ECR LOG", "[BaseNumber]='" &
Me.BASENUMBER & "'"), 0) + 1
Me.EXTENSION = NextNumber