It seems more convenient to me to save the "project number" as a separate field. This may not apply to your case, but in many similar cases, that is what I would do.
>Hello all,
>I have a textbox that I want to default (read force) a prefix containing an alpha-numeric value such as '1234-0C'. The first 4 numbers come from a project number that I don't want the users to be able to change. I was thinking of using an inputmask...
>
>object.inputmask=str(projnum,4)+'-'+repl('!',10)
>
>It works except when there is a "9" in projnum. Any ideas other than breaking it up into 2 textboxes?.
>
>TIA
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)