Hello,
I have the following feature in my mind to have a minimum of errors on entering data in a form :
The form is used to enter products with their EAN-code. As the EAN-code is the most important field to determine the correct product, the code has to be correct.
What I want to check after entering a EAN-code in the field :
1. number of characters should be 13
2. if number of characters < 13, fill up with "0" from the left
eg. if a code is entered 1234567890, the system would inform the user that the code is not correct, and change it to 0001234567890 (in this way, the barcode-scanner can read the EAN-code correct, as it doesn't look at the leading zero's)
Can anyone give me some VBA-lines to have this done ??
Regards,
PdtIt
I have the following feature in my mind to have a minimum of errors on entering data in a form :
The form is used to enter products with their EAN-code. As the EAN-code is the most important field to determine the correct product, the code has to be correct.
What I want to check after entering a EAN-code in the field :
1. number of characters should be 13
2. if number of characters < 13, fill up with "0" from the left
eg. if a code is entered 1234567890, the system would inform the user that the code is not correct, and change it to 0001234567890 (in this way, the barcode-scanner can read the EAN-code correct, as it doesn't look at the leading zero's)
Can anyone give me some VBA-lines to have this done ??
Regards,
PdtIt