Originally Posted by
WeeTerrier
Hi,
I have a basic knowledge of Access but am struggling with getting update queries to run. Sometimes they work perfectly and other times I can't seem to the the syntax quite right and don't know enough about SQL to spot the mistakes, can anyone help?
I basically want to update a field on a table, but to ensure the right value is taken from the reference table I need to make sure that two fields on the update table match those on the reference table.
I have tried creating a query in design view but it doesn't seem to work. Therefore I've been playing around with the SQL and have the following, but it only returns values from the update table which I entered manually:
UPDATE tblOperatorsInstallations, Operations
SET [Operations]![MSReference] = [tblOperatorsInstallations]![MSReference]
WHERE ((([Operations]![Installation])=[tblOperatorsInstallations]![Installation]) AND (([Operations]![Operator])=[tblOperatorsInstallations]![Operator]));
Any advice appreciated!