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

Validating Field to Avoid Duplicate Record

Featured Replies

  • Newbies

Hi,

How can I validate a field to avoid duplicates. i.e. CompanyID 1 = ABC Company

CompanyID 2 = XYZ Company

And if ABC Company is entered again, it will link to CompanyID 1, etc.

Many thanks for your help,

Andre

erm 1st off i'd make companyID an auto generated number, to do the work for u (key field, so u can change the name later etc.)

then make companyName and validate it to be unique.

so Company ABC cannot be entered twice.

however Company ABC and Company ABC (double space, are 2 diff things so it wont stop this.)

in my DB i made the company name field on data entry a drop down, auto complete so if i type 'Company' and 'Company ABC' appears below i can see some1 else has entered it and abort my creation.

  • Author
  • Newbies

Thanks. The extra space is just a typo.

But to be more explicit, once I created the company name (ABC Company), I have to add the contact name, etc.

Then I need to create another record for another contact name with the same company (ABC Company). If I used the unique value and serial number, then it will prompt me for duplicate. What I want to happen is to create another record (new contact name) but using existing Company ID and Company Name.

Thanks.

You would want to have a related table for your contacts. Each contact in the table would have an associated companyID which represents each different company.

  • Author
  • Newbies

Thanks John,

I just got the copy of Whitepaper. I'll definitely read it.

Andre

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.