Skip 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.

Preventing duplicate entries of a certain field

Featured Replies

Hi there,

I have a Table with about 5 fields in it, including one Serial Number field which just increments by 1. The one other unique ID field is the EU_ID field, which is a 9 digit unique number.

I have a script that imports data from Excel into this table. How can I set it so if a EU_ID already exists in the database, it can't be added again? I tried changing the EU_ID field to "Unique Value, Custom Message if Failed" and that didnt work. I am assuming it didnt work because that would only catch if the EU_ID was duplicated in the same Excel sheet.

Any ideas?

Thanks

When you import you can set to 'Update matching records in found set' - (making sure that you have Found all records before you start the import ) this will not create new records but merely update old existing ones.

If you cant live with the import updating the other data in already existing records, with that from the excell file, you'll need to make a dummy import table. Import the excell to the dummy, find and delete all the records you already have, and then make a second import from this to real Table.

Well this was way off - read comment's reply instead :)

How can I set it so if a EU_ID already exists in the database, it can't be added again?

Set the validation to "Unique, Validate always".

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.