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.

Assigning then duplicating records based on checkbox selections

Featured Replies

Hi. I have a table called PRICING that contains a field PRICE. I have a list of vendors in a table called VENDORS. Depending on the project, I may want 5 or so vendors (selected with checkbox field) to enter their price in the field PRICE. So its the same record, but the field PRICE would be separate for each vendor. Do I determine which vendor is checked, and then duplicate each record with PRICE, and add the specific vendors foreign key to it, thus creating a duplicate for each vendor? Thanks.

You need a table for Projects, one for Vendors, and a join table for Project_Vendor.

 

Each Project_Vendor record will contain one quote/purchase from one vendor. This table will need, at a minimum, a ProjectID foreign key, a VendorID foreign key, a quote/order selector radio button field, a date field, a price field, and a Purchased checkbox.

 

This is the standard construction for any solution where many of one thing must be related to many of another (in this case, many Projects related to many Vendors).

 

With this schema, it will be easy to create layouts to show all vendors on a project, or vendors submitting a price within a certain time period, or all projects bid on by a vendor, or many other reports.

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.