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.

Prevent duplicate records

Featured Replies

A database with following fields :

DateFrom (data)

DateTo (date)

Event (text, value-list)

I need a workaround to prevent duplicate records that fall into a existing daterange (from

Let's see if I can describe this. It's easier to do than explain. The concept is to use the start and end date fields and a script to fill a text field (call it EventDates) with a list of dates for the event. For example:

DateFrom 3/1/2001

DateTo 3/5/2001

the field EventDates would be:

3/1/2001

3/2/2001

3/3/2001

3/4/2001

3/5/2001

Then create a self relationship (EventDate <--> Event Date). We'll call this relationship "SelfDates" This is a tricky way to create a many-to-many relationship. You can populate this field from DateFrom and DateTo using either a looping script or a plug-in. We'll call this relationship "SelfDates".

Next create calculation fields:

Constant (calculation, number) = 1

Error (calculation, text) =

Case(Sum(SelfDates::Constant) > 1, "Duplicate Record!", "")

This will give you a calculated field with an error message if dates overlap. To check for only events of the same type, you would need to build a more complex field than just a list of dates (date-event).

-bd

  • Author

Thanks for the quick reply.

Still stuck :

Field EventDates - repeated field ? - datefield ?

Can't find syntax for looping script.

Found allready workaround to check events of the same type.

Are half-way.

Thanks for help.

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.