Hi,
Im fairly new to creating databases and please be nice as my database is probably not the best designed but im trying.
My database is designed to compare two datasets from our internal systems and then append data mimatches into [Mismatch Table - Results] then people can use forms and such to investigate the issue and then fix the issue, which means next time the comparison is made the two fields will match. As this event of them matching again on the system is where the mismatch is resolved i am trying to create a query which sets all the now matching items to resolved.
I have set up a select query which finds items that are resolved - SQL Below:
This query works fine and returns the records which i expect, however to run the update query, i have tried several variations of the below SQL however it seems to return no current record and i cant understand why.
If anyone could point me in the right direction or explain why this has happened i would be very grateful.
Im fairly new to creating databases and please be nice as my database is probably not the best designed but im trying.
My database is designed to compare two datasets from our internal systems and then append data mimatches into [Mismatch Table - Results] then people can use forms and such to investigate the issue and then fix the issue, which means next time the comparison is made the two fields will match. As this event of them matching again on the system is where the mismatch is resolved i am trying to create a query which sets all the now matching items to resolved.
I have set up a select query which finds items that are resolved - SQL Below:
Code:
UPDATE [Mismatch Table - Results] SET [Mismatch Table - Results].[Resolution Confirmed by] = "SYSTEM", [Mismatch Table - Results].[Resolution Confirmed Date] = Date()
WHERE ((((SELECT [Mis-Match ID] From [Ready to Resolve - Cost Centre]))=[Mismatch Table - Results].[Mis-Match ID]));
This query works fine and returns the records which i expect, however to run the update query, i have tried several variations of the below SQL however it seems to return no current record and i cant understand why.
Code:
UPDATE [Mismatch Table - Results] SET [Mismatch Table - Results].[Resolution Confirmed] = -1, [Mismatch Table - Results].[Resolution Confirmed by] = "SYSTEM", [Mismatch Table - Results].[Resolution Confirmed Date] = Date()
WHERE ((((SELECT [Mis-Match ID] From [Ready to Resolve - Title]))=[Mismatch Table - Results].[Mis-Match ID]));
If anyone could point me in the right direction or explain why this has happened i would be very grateful.