FireStrike
Registered User.
- Local time
- Yesterday, 23:19
- Joined
- Jul 14, 2006
- Messages
- 69
Hey all,
I am using Access 2010. I have two tables, tblInventoryItems, and tbl2R.
tblInventoryItems is just a list of items we have in out inventory. It has three fields, country_code(int), sim_mfr_no(text) and sim_item_no. The
tbl2R is a table with a number of replacements. tbl2R has the following fields.
newCC(int)
newMfr(text)
newItem(text)
newCat(text)
newDesc(text)
oldMfr(text)
oldItem(text)
oldCat(text)
oldDesc(text)
My primary keys in tbl2R is newCC, newMfr, newItem.
My Primary Keys in tblInventoryItems is country_code, sim_mfr_no, sim_item_no.
I created a query that will join these two tables. I need to update certain info on items that are in inventory. Unfortunately, access will not let me update the data through my query. Below is the SQL for my query.
SELECT tbl2R.newCC, tbl2R.newMfr, tbl2R.newItem, tbl2R.newCat, tbl2R.newDesc, tbl2R.oldMfr, tbl2R.oldItem, tbl2R.oldCat, tbl2R.oldDesc
FROM tbl2R INNER JOIN tblinventoryitems ON (tbl2R.newItem = tblinventoryitems.sim_item_no) AND (tbl2R.newMfr = tblinventoryitems.sim_mfr_no) AND (tbl2R.newCC = tblinventoryitems.country_code);
Thank you.
I am using Access 2010. I have two tables, tblInventoryItems, and tbl2R.
tblInventoryItems is just a list of items we have in out inventory. It has three fields, country_code(int), sim_mfr_no(text) and sim_item_no. The
tbl2R is a table with a number of replacements. tbl2R has the following fields.
newCC(int)
newMfr(text)
newItem(text)
newCat(text)
newDesc(text)
oldMfr(text)
oldItem(text)
oldCat(text)
oldDesc(text)
My primary keys in tbl2R is newCC, newMfr, newItem.
My Primary Keys in tblInventoryItems is country_code, sim_mfr_no, sim_item_no.
I created a query that will join these two tables. I need to update certain info on items that are in inventory. Unfortunately, access will not let me update the data through my query. Below is the SQL for my query.
SELECT tbl2R.newCC, tbl2R.newMfr, tbl2R.newItem, tbl2R.newCat, tbl2R.newDesc, tbl2R.oldMfr, tbl2R.oldItem, tbl2R.oldCat, tbl2R.oldDesc
FROM tbl2R INNER JOIN tblinventoryitems ON (tbl2R.newItem = tblinventoryitems.sim_item_no) AND (tbl2R.newMfr = tblinventoryitems.sim_mfr_no) AND (tbl2R.newCC = tblinventoryitems.country_code);
Thank you.