BabyPowder2u
Programmer
I am trying to get the next sequence number for a tracking number.
The number is composed of 3 parts YY (year) XX (two set characters and nnnn (a 4 digit number): yyXXnnn
I am using:
ASeq = DMax("Right([TrkNumber], 4)", "[tblRequest]", "Left([TrkNumber], 2)='" & Format(Date, "yy") & "'")
this works fine, if there is a number already in the file, however I need to set the value to 0001 if this returns a null (no value found).
Can someone help me modify this please.
T
The number is composed of 3 parts YY (year) XX (two set characters and nnnn (a 4 digit number): yyXXnnn
I am using:
ASeq = DMax("Right([TrkNumber], 4)", "[tblRequest]", "Left([TrkNumber], 2)='" & Format(Date, "yy") & "'")
this works fine, if there is a number already in the file, however I need to set the value to 0001 if this returns a null (no value found).
Can someone help me modify this please.
T