Jump to content

noob: make record with field that has validation?


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

Recommended Posts

I have a db that has a validation of 'not empty' and also has strict and a message on it. But now I'd like to script making records into the db but also need the validation for when users manually enter info.

When I script a record to be made and try to enter the info into a field when the validation is on, it fails, but when I turn off the validation on the field then I can add any info I like. Can I get around this at all?

[color:blue]set myNewRecord to create record

go to myNewRecord

set cell "BookCode" of myNewRecord to "0027000605"

Link to comment
Share on other sites

I guess the question is, why let a script enter incorrect data but not a person?

If you were using FMP 7 you could use the Commit Record script step with the option to bypas validation.

Link to comment
Share on other sites

This topic is 6844 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.