B
Buddy
Hi everyone,
I'm in the very beginning stages of developing a database that will
develop serial numbers for a company. I've used Access in the past,
but have never had to use modules before and so have never had to
program in vba, although I do have some programming experience.
Please bare with me....
In essence, I need to develop a db that will make a serial number
based on the following layout:
FACILIY YEAR MONTH DAY SHIFT PACKINGAREA - UNITNUMBER
1 04 01 13 1 01 - 0001
When finished, the number should look like this: 1040113101-0001
I need to extract the year, month, and day from the computer's clock.
Facility, shift, and packing area will come from tables I've created
in the database. Unit number is a four-digit autonumber that will
increment by one. Since they do not make nearly 9999 products a day,
no serial numbers will be identical.
All I'm trying to do right now is get all of these fields to combine
in the above format, store itself in a separate table for query
purposes, and print out onto a small label to be placed on finished
goods.
Factory employees will be using a touch screen to log in and choose
the facility, shift, and packing area as appropriate via drop down
lists (I believe they are called "combo boxes" in Access) in a form.
Then, they will press a button on the bottom of that form that will
print out a label with the serial number.
I have no problems creating the tables and necessary forms, but I am
having serious issues extracting all this information and putting it
all into one combined number, with no spaces between save for the
single hyphen. I imagine modules will have to be created and
implemented, although I have no experience with them whatsoever.
I would be extremely grateful for any and all help. Could someone,
anyone, help lead me in the right direction or show me some similar
code that may help?
Please feel free to e-mail with suggestions.
Thank you all so very much in advance,
Buddy ([email protected])
I'm in the very beginning stages of developing a database that will
develop serial numbers for a company. I've used Access in the past,
but have never had to use modules before and so have never had to
program in vba, although I do have some programming experience.
Please bare with me....
In essence, I need to develop a db that will make a serial number
based on the following layout:
FACILIY YEAR MONTH DAY SHIFT PACKINGAREA - UNITNUMBER
1 04 01 13 1 01 - 0001
When finished, the number should look like this: 1040113101-0001
I need to extract the year, month, and day from the computer's clock.
Facility, shift, and packing area will come from tables I've created
in the database. Unit number is a four-digit autonumber that will
increment by one. Since they do not make nearly 9999 products a day,
no serial numbers will be identical.
All I'm trying to do right now is get all of these fields to combine
in the above format, store itself in a separate table for query
purposes, and print out onto a small label to be placed on finished
goods.
Factory employees will be using a touch screen to log in and choose
the facility, shift, and packing area as appropriate via drop down
lists (I believe they are called "combo boxes" in Access) in a form.
Then, they will press a button on the bottom of that form that will
print out a label with the serial number.
I have no problems creating the tables and necessary forms, but I am
having serious issues extracting all this information and putting it
all into one combined number, with no spaces between save for the
single hyphen. I imagine modules will have to be created and
implemented, although I have no experience with them whatsoever.
I would be extremely grateful for any and all help. Could someone,
anyone, help lead me in the right direction or show me some similar
code that may help?
Please feel free to e-mail with suggestions.
Thank you all so very much in advance,
Buddy ([email protected])