Jump to content
Sign in to follow this  

Validate a field with constant prefix

Recommended Posts

I have a database that tracks manufacturing production. I have a text field that contains a part number (i.e. 123456). The last field in my database is one where I scan a barcode of the part number. I need to validate that the 2 fields match, however, the scanned part number contains of prefix of "P" (i.e. P123456). Previously, I had set the scanned part number field validation as a calculation Exact (part number; "P"&scannned part number). This did the job, but caused some problems during data entry. I'd like to change the validation to a script that is run after data entry. I tried creating a script with:

If Exact (part number; "P"&scannned part number)




End if

The Exact function is not working anymore?

Please advise

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

By using this site, you agree to our Terms of Use.