
Originally Posted by
Ken Sheridan
Unfortunately, by having multiple columns for the branches, your table is 'encoding data as column headings'. A fundamental principle of the database relational model is the Information Principle (Codd's Rule #1). This requires that all data be stored as single values at column positions in rows in tables, and in no other way. The attached file illustrates how data incorrectly modelled in this way can be corrected by means of VBA code which inserts data into a pre-defined table which models the many to many relationship type. In the demo the 'Quantity in Stock Values' option is appropriate to your database.