Thanks for the tip. Actually, I discovered we are using NEXT for voucher ID, but we still need a random number for Invoice ID. It would be able to be any number (i.e. 1-100). Our system looks at the combination of voucher ID and invoice ID and verifies the combo is unique. Thanks!