Hello,
So what i am looking to do with my userform is to have it so once the userform has been filled out you can click on the 'generate contract number' which will in turn search the database for the previous number and go 1 higher than that. the other part to this is that i would like it to be able to change the number generated dependent on the variable 'Stream' for instance:
If the 'Stream' SW is selected the current number is 6805 so it would need to generate 6806 as the Number when button is clicked, ideally i would have it adding SW prior to the number also.
second example would be if the EWD 'Stream' was selected it would pull 1 higher than the current one (102) and again it would be great to add a tag so that D103 would be the outcome of pressing the button.
at the moment in the userform i have the contract number locked as i would not want to enter a figure manually.
Here is a link to my workbook currently:
http://www.2shared.com/file/nW_UlpwY/thedata.html
Thank you in advance for any help you might be able to give.
(i have a tendency to over-complicate so if you also know a simpler solution that would be great too)
Regards,
Owen
So what i am looking to do with my userform is to have it so once the userform has been filled out you can click on the 'generate contract number' which will in turn search the database for the previous number and go 1 higher than that. the other part to this is that i would like it to be able to change the number generated dependent on the variable 'Stream' for instance:
If the 'Stream' SW is selected the current number is 6805 so it would need to generate 6806 as the Number when button is clicked, ideally i would have it adding SW prior to the number also.
second example would be if the EWD 'Stream' was selected it would pull 1 higher than the current one (102) and again it would be great to add a tag so that D103 would be the outcome of pressing the button.
at the moment in the userform i have the contract number locked as i would not want to enter a figure manually.
Here is a link to my workbook currently:
http://www.2shared.com/file/nW_UlpwY/thedata.html
Thank you in advance for any help you might be able to give.
(i have a tendency to over-complicate so if you also know a simpler solution that would be great too)
Regards,
Owen