Populating a Link Table

jogrady

New Member
Joined
Dec 17, 2004
Messages
23
I'm new to Access database development and was hoping to get some feedback from some veterans.

I'm creating a products database for a body jewelry company that sells 5000 different items. Right now each item is identified by a unique product code. The problem is each product code has multipe size and color variations. We have to track stock for each product variation so I'm going to create a unique value (skuID) for each color and size variation and associate it with ProductID. To accomplish this I've created three tables. One for products, one for each product variation called Skus, and a ProductConfig table to assign skus to products. Is this best practice? (I've read that I should avoid multi-value lookup fields for size and color combos.)

Here is where I run into problems....

I want Users to be able to create/modify/delete products and the skus associated with those products. Every product must have a Sku assigned. So, when a users creates a product in a form I want to give them the ability to create all the skus associated with that product too. How do I automatically associate the product ID to each skuID in the ProductConfig table as those products and skus get created via the form I'm going to build. Will I have to learn Visual Basic to do this? Do I create some sort of Macro? Does Access already know how to do this? I don't want to have to manually assign productsIDs to SkuIDs via lookup tables in the ProductsConfig table. That would be prone to error.

Thanks in adance for your help, advice, or just for pointing me in the right direction.
 
Last edited:

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Phildaburn

Board Regular
Joined
Feb 4, 2011
Messages
146
Have you set this up in at least 3 tables: 1 - unique product code, 2 - available sizes, and 3 - available colors? Do you really want a user to be able to delete these records? Won't that destroy your sales history? Have you considered using a concatenation of the unique product code, a size code, and a color code as your skuID?
 

Watch MrExcel Video

Forum statistics

Threads
1,109,377
Messages
5,528,333
Members
409,817
Latest member
JiNXX9500

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top