Assign default values within a form for new records based on a field in the new record and matching fields in existing records

EdP68

New Member
Joined
Dec 2, 2022
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
I have a database I am developing that contains a table of products. These products are from multiple manufactures (captured in the table as "Manufacturer"). In addition to the product "Model Number" there is a "Product Line" field and several product characteristics, such as "Construction Method", "Material", and "Base Type". When a new product is added with a "Product Line" with existing matching records, I want to add the fields that match 100% of the time. If product line X has records with two different bases, that field would be left blank while "Construction Method" and Material" that are always 'Glued' and 'Oak' respectively are populated because they are consistent among all existing record for "Product Line" X.

Any assistance is greatly appreciated.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Can you post a copy of your tables and relationships? -- expand tables to show all fields if possible.
Who determines ProductLine? Do you have a list of Product Lines to show us the "kind of data" involved?
 
Last edited:
Upvote 0
I'd agree with that suggestion because this seems wrong
If product line X has records with two different bases
Sounds like you should have one record for Product X and a junction table for the combinations of Base Type.
 
Upvote 0

Forum statistics

Threads
1,214,838
Messages
6,121,885
Members
449,057
Latest member
Moo4247

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top