Jump to content
Sign in to follow this  
Bill_misc_IT

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)

task

Else

task

End if

The Exact function is not working anymore?

Please advise

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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