Serial number generator II

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Thank for the reply John:

No more than 5 numbers. numbers need to be printed on small white sticky
tags to be placed on product.
no information on them, just last number used.
Thanks
 
Thank for the reply John:

No more than 5 numbers. numbers need to be printed on small white sticky
tags to be placed on product.
no information on them, just last number used.
Thanks

Given that, I'd suggest not storing one record per serial number.

Instead, use a Form (frmMyForm) with two textboxes, txtStart and
txtEnd; and a handy general-purpose table called Num with only one
field, a Long Integer number field N as its primary key. Fill Num with
numbers from 0 to the most numbers you'll ever need at once (be
generous - 100000 rows is still a very small table).

Create a Query

SELECT N+[Forms]![frmMyForm]![txtStart]
FROM Num
WHERE N+[Forms]![frmMyForm]![txtStart] <= [Forms]![frmMyForm]![txtEnd]

and base your label report on this query.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top