scsuflyboy72
Technical User
I have a table called WorkOrder. I have fields called WODate, and Work Order # (among others that aren't related). I have a field named ID that is an autonumber, set as the Primary Key.
Here's what I would like to do that I can't seem to manage:
I want to do one of two things.
On my form I have command button, that when clicked creates a blank word order form. Is there a way to have this command button also generate a unique work order #? I would like to have the work order number in the format mmddyy##, where the ## is the work order number for that job, starting at 01 and incrementing by 1. On the next day, the increment would start over at 01, instead of a continual increment.
If this can't be done, could someone assist me in creating a command button that when clicked would generate a work order # based on the format stated above, that would place this # in the Work Order # field.
Please help...I'm stuck and need to get this going ASAP.
Here's what I would like to do that I can't seem to manage:
I want to do one of two things.
On my form I have command button, that when clicked creates a blank word order form. Is there a way to have this command button also generate a unique work order #? I would like to have the work order number in the format mmddyy##, where the ## is the work order number for that job, starting at 01 and incrementing by 1. On the next day, the increment would start over at 01, instead of a continual increment.
If this can't be done, could someone assist me in creating a command button that when clicked would generate a work order # based on the format stated above, that would place this # in the Work Order # field.
Please help...I'm stuck and need to get this going ASAP.