G
Guest
I have a number being generated by a VB code in a form, the number is a four
digit number based on the number previous. I need this number to have a
leading 0. For instance right now I can generate number 6001 but I need it
to appear as 06001. I have already tried formatting the field 00000, but
that isn't working.
The VB code I am using is:
Private Sub Form_Current()
If IsNull(QuoteNum) Then
QuoteNum = Nz(DMax("[QuoteNum]", "Quote"), 8490) + 1
Any help is much appreciated!
digit number based on the number previous. I need this number to have a
leading 0. For instance right now I can generate number 6001 but I need it
to appear as 06001. I have already tried formatting the field 00000, but
that isn't working.
The VB code I am using is:
Private Sub Form_Current()
If IsNull(QuoteNum) Then
QuoteNum = Nz(DMax("[QuoteNum]", "Quote"), 8490) + 1
Any help is much appreciated!