Marcel2586
Registered User.
- Local time
- Today, 03:01
- Joined
- Mar 1, 2012
- Messages
- 41
Hello all,
Is there a way in vba to automatically correct incomplete data?
When we get new parts we scan the bar-code and within a query i chop it up with this in the field
Example good scan:
20 MAY 2004H149-082-79 A4147011A05
But sometimes it happens that the certificate is missing, wrong, or shipped later. but now if i scan with no certification number i get an #Func! error.
Example of a bad scan:
20 MAY 2004H149-082-79
In my table i have a validation rule like this, that works. At least it gives me a message that the data is incomplete.
Is there a way to fill in automatically "No certificate at the moment" when the data is smaller than 35 characters.
Thank you in advance.
Is there a way in vba to automatically correct incomplete data?
When we get new parts we scan the bar-code and within a query i chop it up with this in the field
Code:
CertNumber: Trim(Right([PartCertNr];[space]+2))
Example good scan:
20 MAY 2004H149-082-79 A4147011A05
But sometimes it happens that the certificate is missing, wrong, or shipped later. but now if i scan with no certification number i get an #Func! error.
Example of a bad scan:
20 MAY 2004H149-082-79
In my table i have a validation rule like this, that works. At least it gives me a message that the data is incomplete.
Code:
Len([BatchInput])>=35
Thank you in advance.