Jump to content

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

Recommended Posts

Posted

Is it possible to validate the value of two records in a multi-record file?

I use the field for a valuelist in other files. The selections in the other files trigger calculations results. The calculations have two of the record values defined predefined in their calculations.

I have tried the ValueListItems( ) functions but it seems to calculate after the validation calculations.

Thanks.

Posted

Hi Mark, you could probably do this with two relationships and a script.

Make a field in your multi-record file called "Flag". For the first record, set this field to 1; for the second record, set it to 2. Now in the file from which you want to do validation, make two globals. Set the first to 1, and set the second to 2. Make a relationship from the first to the foreign field Flag and call this relationship Rel1. Make a relationship from the second to the foreign field Flag and call this relationship Rel2.

Now use a script to validate: The script steps will be

If ( Rel1::SomeField = "Whatever you want")

If ( Rel2::SomeField = "Whatever else")

<your code here>

Else

Exit Script

End If

Else

Exit Script

End If

Does this help?

Jerry

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