Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I make a simple program for customized serial numbers.

Status
Not open for further replies.

eric371

Technical User
Nov 11, 2001
1
0
0
PH
Will somebody help me create a simple vb program for customized serial number? I'd like to specify the beginning and ending of serial numbers then it will automatically create the numbers.

eg:
sample 3 columns

start : 1 end: 15
then i will have:
1
2
3 up to 15.
can i use letters too?

eric
 
You're probably going to want a database for something as serious as serial numbers. Is that right? If so, the answers change drastically. Back to you...
 
If you just want to see serial numbers well

For i = 1 To 15
Print i
Next
that'd give you 1 to 15. 1 and 15 can be variables visible at the point the code will run

for alphabets(upper case)...
For i = 65 To 90
Print Chr(i)
Next

for alphabets(lower case)...
For i = 97 To 122
Print Chr(i)
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top