Jump to content

3skip numbering


Recommended Posts

That doesnt quite work the way I need it to.. I have to have 3 leading zeros. I've got something like

 

LeadingZero="000";

return FormatNumber(LeadingZero, 3 * CurrentRecordNumber()) - 1;

 

But I dont get the zero's, this rule will work for the second position on the ticket but not the third

 

I modified it a bit to use it in the 3rd position like so

 


LeadingZero="000";

return FormatNumber(LeadingZero, 3 * CurrentRecordNumber()) ;

 

and as a result got 003, 006, 009 ect.... but how to make this work for ticket 1 ( ie. 1,4,7,10.....)

 

thanks

 

Aaron

Link to comment
Share on other sites

but how to make this work for ticket 1 ( ie. 1,4,7,10.....)

 

How about:

LeadingZero="000";
return FormatNumber(LeadingZero, 3 * CurrentRecordNumber() - 2);

And if the code for the (2, 5, 8, ...) is right in your post, you aren't getting the formatting because you need to put the "-1" inside the right-most bracket. ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...