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.

Conditional List, Many-To-Many Records

Featured Replies

This should be easy but it has me stumped:

Tables:

Companies

Contacts

Comp_Cont_Many (table joining many contacts with many companies)

Orders

Many-to-many relationship between companies and contacts.

Each order may have only 1 Contact and 1 Company.

On the Order input form, there's a drop-down menu for Contact, and another for Company (to assign a single Contact and a single Company to the order).

The Contact value list on the order input form is not conditional. User may select any Contact from the Contact table to put into an order.

The Company value list should be conditional, based on the Contact for the order.

Example:

Jon Doe (contact) belongs to Companies ABC and XYZ via the Comp_Cont_Many table.

User creates an order and Jon Doe is the Contact for said order.

When user goes to the Company field of this order (Order layout), the drop-down menu should show companies ABC and XYZ as options for this orders, but should NOT show any Companies for which Jon Doe does not belong.

Stumped on how the relationships should be structured for this conditional value list. Any help appreciated.

Assuming you are ordering from a company, your core relationships should be:

Contacts -< CompanyContacts >- Companies -< Orders >- Contact

For the conditional value list, you need also:

Orders::ContactID = CompanyContacts 2::ContactID



CompanyContacts 2::CompanyID = Companies 2::CompanyID




Select from field Companies 2::CompanyID, showing only related values starting from Orders.





Alternatively, you could define a calculation field in CompanyContacts =




Companies::Name

and dispense with the second relationship, selecting from the field CompanyContacts 2::CompanyID.

  • Author

Thank you. I'll give this a try.

Assuming you are ordering from a company, your core relationships should be:

Contacts -< CompanyContacts >- Companies -< Orders >- Contact

For the conditional value list, you need also:

Orders::ContactID = CompanyContacts 2::ContactID



CompanyContacts 2::CompanyID = Companies 2::CompanyID




Select from field Companies 2::CompanyID, showing only related values starting from Orders.





Alternatively, you could define a calculation field in CompanyContacts =




Companies::Name

and dispense with the second relationship, selecting from the field CompanyContacts 2::CompanyID.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.