T
tracey
I am a complete novice when it comes to VB but after
reading several similar problems to mine I feel that
creating some VB is my only answer.
I need to generate a unique number that is automatically
increased by 2 when data is entered into the database from
an online form. This unique number will then be displayed
to the user for reference purposes.
The numbers relate to computers and monitors owned by my
company and therefore can-not be reused. Also Monitors
require and even number and Computers an Odd. Monitor
details will be held in a different table from the
Computers.
My problem, I can't use AutoNumber as I can't make is
increase by 2 and apprently can't rely on in supping
sequencial number ever time. So need to write some code to
do this for me. As I no nothing about VB I was hoping
someone out there could help.
Now obviously some equipment is already cataloged and
therefore already number so I need my auto numbering to
start from a specific number. ie: 01419 and 3 letters to
preceed the number ie xyz.
So I get XYZ01419
XYZ01421
XYZ01423
For computers and
XYZ01420
XYZ01422
XYZ01424
For monitors
A bit of a long winded explanation I know but I hope I've
covered it all.
Oh could this AutoNumber also be my Primary Key?
Thanks
reading several similar problems to mine I feel that
creating some VB is my only answer.
I need to generate a unique number that is automatically
increased by 2 when data is entered into the database from
an online form. This unique number will then be displayed
to the user for reference purposes.
The numbers relate to computers and monitors owned by my
company and therefore can-not be reused. Also Monitors
require and even number and Computers an Odd. Monitor
details will be held in a different table from the
Computers.
My problem, I can't use AutoNumber as I can't make is
increase by 2 and apprently can't rely on in supping
sequencial number ever time. So need to write some code to
do this for me. As I no nothing about VB I was hoping
someone out there could help.
Now obviously some equipment is already cataloged and
therefore already number so I need my auto numbering to
start from a specific number. ie: 01419 and 3 letters to
preceed the number ie xyz.
So I get XYZ01419
XYZ01421
XYZ01423
For computers and
XYZ01420
XYZ01422
XYZ01424
For monitors
A bit of a long winded explanation I know but I hope I've
covered it all.
Oh could this AutoNumber also be my Primary Key?
Thanks