Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7957 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a field in my database into which a bar code number must be typed. The number is always 13 characters long I want to attach a script to the submit button that basically says if there are less than 13 characters or more than 13 characters in this field flash up a message saying "the bar code must be 13 characters long".

I'm sure it's dead easy but I can't seem to fathom out the steps or language I need to use.

Heeelp

Graham

Posted

Hi Graham,

This worked for me:

If [" not Length(yourfield)=13"]

Show Message ["The bar code must be 13 characters long"]

Exit Script

End If

Posted

You can do that using field validation. Check out the options behind the field in Field Definations, and use by calculation Length(Names) = 13 check the box for strick, and type in your message.

HTH

Lee

smile.gif

This topic is 7957 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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