473,500 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Code "Auto-Letters" ?

Greetings:
I appoligize if I'm asking a question that's already been answered in
the group - I've scoured for about two hours and I can't find a
solution. I also appoligize if I over complicate my question, but I
want to be sure that I communicate my thought(s).

The database I'm working on will generate tens, perhaps hundreds of
thousands of records, each of which need to be identified uniquely.
Using the autonumber would be ideal except that I'll need to use this
unique field to generate barcodes which will have to be printed on
small labels. So - If I get to record 999,999 and generate a barcode
for it, the barcode will be huge - or to big to fit on my label.

I think my solution would be to use letters rather than numbers.
Instead of counting 1, 2, 3, 4... 1,000; I want to count A, B, C, D...
ABCD. I guess my logic can be flawed, but I was thinking that since
there are 26 letters in the alphabet and only 10 numbers, I would be
able to get quite a bit farther in each place value using letters.

Thanks a bunch for any suggestions!

Matt

Nov 13 '05 #1
3 3084
ma**@1320am.com wrote in
news:11**********************@l41g2000cwc.googlegr oups.com:
Greetings: I think my solution would be to use letters rather than
numbers. Instead of counting 1, 2, 3, 4... 1,000; I want to
count A, B, C, D... ABCD. .

Thanks a bunch for any suggestions!

Matt

Use the autonumber in the table and write a function that takes the
modulo 36 (26Letters+ 0-9 digits) of your number and converts it to
a digit or letter and then loops to process the remaining value and
use that on your barcode..Sorta like Hex but with all letters of
the alphabet instead of just 0-9,A-F.

--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #2
Matt,
Mathematically all you are doing is counting a series that iterates by one
and has a base of 26. Once you generate the next number in the series it's
a simple matter of using the char(ansivalue) function to return the
character for that number. Now, a 15 digit number will give you a maximum
value of 999,999,999,999,999. That's a quadrillion rows in a single table
before you run out of numbers. Access won't hold a quadrillion rows, as far
as I know. So you'll run out of rows in your table before you run out of
numbers if you used a simple numeric sequence. You could still declare as a
15 character text column that held your sequence numbers. If I were you I'd
just use a numeric sequence of my own design. Even if you interated by ten
you'd still have over 100 billion numbers--plenty.

<ma**@1320am.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Greetings:
I appoligize if I'm asking a question that's already been answered in
the group - I've scoured for about two hours and I can't find a
solution. I also appoligize if I over complicate my question, but I
want to be sure that I communicate my thought(s).

Nov 13 '05 #3
Matt,
It also occurs to me that the 2-D bar codes that UPS uses probably can fit
more values in the same small space because it uses a pattern of squares to
hold the data instead of a pattern of bars. This may not be a database
problem as much as it is a choice of bar code software problem.

<ma**@1320am.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Greetings:
I appoligize if I'm asking a question that's already been answered in
the group - I've scoured for about two hours and I can't find a
solution. I also appoligize if I over complicate my question, but I
want to be sure that I communicate my thought(s).

The database I'm working on will generate tens, perhaps hundreds of
thousands of records, each of which need to be identified uniquely.
Using the autonumber would be ideal except that I'll need to use this
unique field to generate barcodes which will have to be printed on
small labels. So - If I get to record 999,999 and generate a barcode
for it, the barcode will be huge - or to big to fit on my label.

I think my solution would be to use letters rather than numbers.
Instead of counting 1, 2, 3, 4... 1,000; I want to count A, B, C, D...
ABCD. I guess my logic can be flawed, but I was thinking that since
there are 26 letters in the alphabet and only 10 numbers, I would be
able to get quite a bit farther in each place value using letters.

Thanks a bunch for any suggestions!

Matt

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1404
by: Smyke | last post by:
Hello I,ve got this "suckerfish menu" from alistapart that doesn't seem to work in Moz/Firebird/Net when you use the "overflow: auto;" css-style on the content below. If you hover over the links...
16
20437
by: John Baker | last post by:
Hi: I know this is a strange question, but I have inherited a system where files are copied and records re auto numbered (as an index field) )frequently, and I am wondering how high the number...
1
2472
by: PL | last post by:
The Culture="auto" UICulture="auto" is a great idea, but how do you handle the situaion where SQL Server always requires a dot "." in numeric values. If I use Culture="auto"so that dates and...
1
4032
by: Jefferds.A | last post by:
Hi, I'm putting together a little database of individuals categorized by family. I have two lists, one that contains family names and one that contains individuals' names. When you click on a link...
1
2121
by: JJ | last post by:
I am trying to stop my layout spoiling when a textbox with a width of 100% has a large amount of text in it. On the master page I have tried using a div with style="overflow:auto", and this work...
9
18814
by: Beowulf | last post by:
I was having this problem: http://groups.google.com/group/microsoft.public.sqlserver.server/msg/e36e423972323378?dmode=source with it taking an inordinate amount of time to enumerate the...
22
3033
by: nospam_news | last post by:
I currently get asked about my usage of "auto". What is it for? The keyword is clearly superflous here. In contrast to the huge majority of C/C++ developers I write definitions very explicitly...
2
3047
by: Piotr K | last post by:
Hi, I've encountered a strange problem with Firefox which I don't have any idea how to resolve. To the point: I've <divelement with a style "height: auto" and I want to retrieve this value...
1
3079
by: mattmao | last post by:
I am doing a ASP.NET porject, inside a asp control tag there are some textboxes for users to input data. Later they can take previously entered data out of those textboxes. To provide better UI...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.