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.

Repeating Drop Down Menus: Preventing Duplicate Selections?

Featured Replies

Greetings!  A few weeks ago, some of you were kind enough to help me construct a database for my movie collection.  (Thank you, by the way.)

But I just now noticed something.  It’s not really a flaw.  There’s nothing really wrong.  I don’t really HAVE to fix anything.  So, I’m just asking this question out of curiosity.

The database has a few portals with repeating drop down menus.  I just realized I can select the same thing twice. 

For example, if I have the movie Jaws and select Genre, I could select Action/Adventure multiple times. 

Or, I could accidentally select the same actor twice.

Is it possible to tweak the database so that this is prevented?  So if I select Action/Adventure accidentally a second time, the database will prevent this?

Will this require a significant rewrite of the database, or does it require some minor surgery, so to speak?

To repeat, it’s not critical.  I’m just curious about how to prevent this.  Thank you!   Jd

master.fmp12

Regarding genres, I doubt you really need a join table or even the Genre table itself. You could probably just use a checkbox field and a custom value list.

With actors, where you do have something useful to record in the Actor table (and possibly in the join table too), you can prevent duplicate entries into the join table by adding a Text field that auto-enters a calculated value =

MovieFK & "|" & ActorFK

and validate this field as Unique.

This will guard against duplicates at the data level. There are additional measures you can take at the layout level to avoid the harsh validation error message. For example, a "dwindling" value list.

 

  • Author

Great.  Thank you once again for your assistance.

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.