Jump to content

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

Recommended Posts

Posted

I have 2 fields and Fields A and Field B and i want the combination of both to be unique ie field A & field b to be unique value. How would you get it to check this not using a script. I cannot get it to work I think I have tried everything but do not want to use a script.

e.g

Field A = hello

Field b = Simon

I want to check that this has not been used before. I tried concatinating the 2 hellosimon using the autoenter but this then does not check if it is unique.

Thanks

Posted

Create a field:

Combo (calculation, text, indexed) = Field A & Field b

Create a self relationship (to the same file) with

Combo matching Combo. Call this relationship "SelfByCombo"

Create a field:

ErrorMessage (calculation, text) =

If (Count(SelfByCombo::Field A) > 1), "Error-Duplicate", "")

This self relationship looks for other records with the same values for Field A and Field b. If others exist, the ErrorMessage field displays text to tell you.

-bd

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