Anthony
asked on
Problem performing update query in Access 2010
Hey all,
I have a table (Over_Ride_Chain) that has three columns: Chain, Old_Dept, and New_Dept.
The chain field is lined to the chain in another table called BILMAC_CHNMSTR and they a column from that table called SSSTOR is then liked to MBSTOR in another table labeled MBRMSTR_Specs.
I'm trying to create an update query for when the Chain matches the Chain/Store from MBRMSTR_Specs it will update the MBDEPT in the MBRMSTR_Specs. There is a problem with the logic in my criteria. I need the Old_Dept field in the Over_Ride_Chain table to equal the MBDEPT field in the MBRMSTR_Specs table and then to update it to the corresponding value from the Over_Ride_Chain.
I know it might be confusing, so here is what the Over_Ride_Chain table looks like:
Chain Old_Dept New_Dept
3002 35 3
3004 35 3
and etc, there are about 7 rows of data. If anyone could help me with this, I'd really appreciate it.
I have a table (Over_Ride_Chain) that has three columns: Chain, Old_Dept, and New_Dept.
The chain field is lined to the chain in another table called BILMAC_CHNMSTR and they a column from that table called SSSTOR is then liked to MBSTOR in another table labeled MBRMSTR_Specs.
I'm trying to create an update query for when the Chain matches the Chain/Store from MBRMSTR_Specs it will update the MBDEPT in the MBRMSTR_Specs. There is a problem with the logic in my criteria. I need the Old_Dept field in the Over_Ride_Chain table to equal the MBDEPT field in the MBRMSTR_Specs table and then to update it to the corresponding value from the Over_Ride_Chain.
I know it might be confusing, so here is what the Over_Ride_Chain table looks like:
Chain Old_Dept New_Dept
3002 35 3
3004 35 3
and etc, there are about 7 rows of data. If anyone could help me with this, I'd really appreciate it.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER