Others

Allow Multiple Suppliers per Product in Microsoft Access

Aamir Naveed AkramAamir Naveed Akram Nov 20, 2026 868 views

Question details

The user needs to associate each product with multiple suppliers in a Microsoft Access inventory database.

Allow Multiple Suppliers per Product in Microsoft Access
Product
Microsoft Access Inventory template
Device & OS
not provided
Scenario
A product can be purchased from several suppliers, and each supplier may provide multiple products.
Observed behavior
The template has one Supplier field per product, limiting how supplier associations are stored.
Before you start

Work on a copy of the Access template and identify the primary keys in its Products and Suppliers tables. Check existing forms, queries, reports, macros, and VBA that use the current Supplier field before changing it.

Solution 1Recommended

Create a product-supplier junction table and subform

Use a many-to-many relationship to record multiple suppliers for each product and manage those links from a product form.

A junction table stores one record for each product-supplier pair. Its foreign-key fields must use data types compatible with the corresponding primary keys; for example, a foreign key referencing an AutoNumber key is typically a Number field with the Long Integer field size.

1
Create the junction table

In Access, select Create > Table Design. Add a primary key such as ProductSupplierID, plus ProductID and SupplierID fields that match the key types in the Products and Suppliers tables. Save the table as ProductSuppliers.

2
Prevent duplicate pairs

In the ProductSuppliers table's Design View, open Indexes and create a multi-field index containing ProductID and SupplierID. Set the index's Unique property to Yes.

3
Define the relationships

Select Database Tools > Relationships and add Products, Suppliers, and ProductSuppliers. Drag each parent table's primary key to the matching foreign key in ProductSuppliers, and select Enforce Referential Integrity for each relationship.

4
Move existing supplier links

Use Create > Query Design to build an append query that adds each existing product ID and nonblank supplier ID to ProductSuppliers. Confirm that the values refer to existing records and inspect the appended rows before changing the original Supplier field.

5
Add a supplier subform

Open the product form in Design View and use the Subform/Subreport control to add a form based on ProductSuppliers. Set Link Master Fields and Link Child Fields to the corresponding ProductID fields so the subform shows links for the current product.

6
Choose suppliers in the subform

In the subform's Design View, add a combo box bound to SupplierID. Set its row source to the Suppliers table so users can select a supplier name while Access stores the supplier ID.

7
Update dependent objects

Review and update forms, queries, reports, macros, and VBA that reference the original Supplier field. Test adding multiple suppliers to one product and using the same supplier for another product before removing or retiring the old field.

Create a product-supplier junction table and subform
Adapt the field names: The template may use different table and field names. Use its actual keys and verify that the existing Supplier field contains supplier IDs before appending its values.
Free Microsoft Office alternative

Review exported inventory data in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface for working with exported inventory data. Open Excel files in WPS Spreadsheets for an easy transition, but use Microsoft Access to maintain the relational database, forms, and queries.

Review exported product and supplier lists in WPS Spreadsheets.Open and edit Microsoft Excel XLS and XLSX files.Use a familiar spreadsheet interface with a lightweight office suite.Move exported data into WPS Office without rebuilding an Access database.
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I just add more Supplier fields to the Products table?

Fields such as Supplier1 and Supplier2 impose a fixed limit and make queries harder to maintain. A junction table stores a separate row for each product-supplier pair, allowing any number of suppliers.

How do I stop the same supplier from being added twice to a product?

Open the junction table in Design View, select Indexes, and create a unique multi-field index on ProductID and SupplierID.

How can I show supplier names instead of IDs in the subform?

Add a combo box to the subform in Design View, bind it to SupplierID, and set its row source to the Suppliers table. Configure the displayed columns to show the supplier name while storing the ID.

Should I delete the original Supplier field immediately?

No. First append the existing links to the junction table, verify the results, and update any forms, queries, reports, macros, and VBA that rely on the original field.

Can WPS Office replace the Access junction table?

No. WPS Spreadsheets can open exported Excel data, but it does not replace the Access database relationships, forms, or VBA. In Access, use External Data > Export > Excel to export data for spreadsheet review.