I have a product return table and a code table. The product table was originally set up with 6 lookup fields for the codes as to there could be more than one thing wrong with the product. I know this is the wrong structure because of the redundant code information. The question is, How do I attach multiple codes to one record ID without multiple fields. The end result would be to query the defects based on the codes. Sort by code and give a count of each one.
I read a few threads on many to many relationships and this sounds like where I want to go but I’m a little confused on how to get there. I’m assuming I would have 3 tables:
Table 1 Table 2 Table 3
tbl_product_return tbl_codes tbl_codelist
record_ID code_ID code_ID
other info code_description record_ID
First thing is how to get the code ID and record ID to table 3 every time they select a defect or code on the form?
I’m going in the right direction as far as structure?
Any help would be greatly appreciated.
Michael

I read a few threads on many to many relationships and this sounds like where I want to go but I’m a little confused on how to get there. I’m assuming I would have 3 tables:
Table 1 Table 2 Table 3
tbl_product_return tbl_codes tbl_codelist
record_ID code_ID code_ID
other info code_description record_ID
First thing is how to get the code ID and record ID to table 3 every time they select a defect or code on the form?
I’m going in the right direction as far as structure?
Any help would be greatly appreciated.
Michael
