Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Uniqueness over two fields

Featured Replies

How do you enforce at the table level uniqueness over tow fields in the same table? The Unique check box under the Validation tab is for the current field. But I need it to be over two fields.

Do you mean that the value can only be used one time in either of the fields? In other words, if you type the word "blue" into any record in either one of the fields, you do not want the user to be able to type "blue" into either field for any record again. If so, what is the purpose of doing this?

See if this helps.

  • Author

No, I mean where the combination of the two fields is unique for the table. Eg. Field A and Field B may have the following values:

blue, cat

red, dog

green, bird

red, bird

the above are all unique. But repeating any of the records would be non-unique.

  • Author

yes it does. thanks so much. I have chosen the method of creating an extra field in the table, using auto-calc to concatenate the two fields, then under validation tab, ticking the unique box for this auto-entry field.

Being a newbie to FM, but an old hat at SQL, its a paradigm shift for me. Eg in any SQL language I know (Oracle, DB2, MySQL and even Access), you never need to create an extra field in order to achieve uniqueness - hence the reason why I did not think along this line). But I am slowly coming to speed on the FM way of thinking :)

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.