I have a weird bug in my problem when trying to check and format of a sting in my code.
In my program I allow the user to define how their job numbers should be formatted when entering. This has worked for almost 16 years and now my client has found this bug.
user defines job number format as: "000000-000"
user enters job number as: "990002-002"
After I run this command:
Me![ClientNumber] = Format(Me![ClientNumber], strFormatJobNumber)
Me![ClientNumber] = 001848-891
For some reason the format command has a bug that only has an issue when the starting two values are a multiple of "3". for example: "33", "66", "99".
If my end user enters: "990002002", the format statement works and the out come is "990002-002"
I am trying to come up with another way to do this comparison, but cannot think of a way to check and make sure the job number is formatted correctly.
Any help would be appreciated.
Thanks,
Preston