How to Find the Supplier with the Lowest Price in Microsoft Access
Question details
The user needs a method to identify the lowest-priced supplier for quotes and determine the highest material price for charging purposes within a database.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Restructuring an older flat-file database to evaluate material quotes, comparing prices across multiple suppliers to ensure accurate purchasing and billing.
- Observed behavior
- The current setup attempts to store each supplier in a separate column, making it difficult to dynamically query the lowest and highest prices.
Before altering your table structure, export a backup copy of your current database and identify all the fields containing your existing material prices and supplier records.
Normalize Data with a Junction Table
The most robust method to manage multiple suppliers and materials without writing complex VBA code is to use a normalized, many-to-many database structure.
Storing each supplier in a separate column (a flat-file structure) makes querying minimum and maximum prices extremely difficult. Normalizing your data resolves this by using related tables.
Navigate to the Create tab, click Table Design, and set up a 'Materials' table with 'MaterialID' (Primary Key) and 'MaterialDescription' fields.
Create a second table named 'Suppliers' with 'SupplierID' (Primary Key) and 'SupplierName' fields.
Create a third table named 'MaterialSuppliers'. Add 'MaterialID', 'SupplierID', and 'Price' fields. This resolves the many-to-many relationship.
Go to Database Tools > Relationships. Drag the tables into the view and connect MaterialID and SupplierID from the primary tables to the junction table.

Use DMin, DMax, and DLookup Functions
Once your tables are normalized, use Access domain aggregate functions to dynamically fetch the lowest and highest prices for forms and reports.
Manage Supplier Prices Easily with WPS Spreadsheets
While Microsoft Access requires database normalization and query building, you can easily track materials, compare supplier quotes, and automatically pull the lowest prices using simple formulas in WPS Spreadsheets.
- 1. Organize Your Supplier Data: Open WPS Spreadsheets and create three columns: 'Material', 'Supplier', and 'Price'. Paste your existing quote data into these columns.
- 2. Calculate the Lowest Price: In a blank cell next to the material you are analyzing, use the =MINIFS() function to find the lowest price associated with that specific material name.
- 3. Find the Corresponding Supplier: Use the =XLOOKUP() or =INDEX(MATCH()) function, using the lowest price you just calculated as the lookup value, to return the name of the supplier.
- 4. Calculate the Highest Price: Use the =MAXIFS() function to determine the highest material price for your own billing and charging calculations.

Frequently Asked Questions
Why shouldn't I use separate columns for each supplier's price?
Storing each supplier in a separate column (like Supplier1_Price, Supplier2_Price) is called an unnormalized database. It makes it extremely difficult to add new suppliers later, requires complex VBA to find minimum values across columns, and makes aggregate queries nearly impossible to run efficiently.
How do I find the highest material price for my billing needs?
If your data is normalized into a MaterialSuppliers junction table, you can use the DMax function: DMax("[Price]", "MaterialSuppliers", "[MaterialID]=xyz"). Alternatively, you can create a Totals Query in Access, group by MaterialID, and set the Price field to 'Max'.
Can I import my old Lotus Approach database directly into Access?
Yes, you can export your Lotus Approach data to a standard format like CSV, DBF, or Excel, and then use the 'External Data' tab in Microsoft Access to import it. Once imported, you will likely need to use Append Queries to restructure the flat data into normalized relational tables.




