I need to update a field (which is currently empty) based on a match with another table. This should be simple, but my syntax is wrong.
In SQLServer 2005, the syntax would be
UPDATE Facilities-NOID SET Facilities-NOID.ID = Facilities-ID.ID FROM Facilities-NOID, Facilities-ID WHERE [Facilities-ID].[Structure ID] = [Facilities-NOID].[Structure ID];
Access doesn’t like that FROM line, but if I leave it out, it wants each ID. This should be simple, but I’m not seeing it in the MS help on the Update syntax.
I think this is what you want:
You are updating Facilities-NOID based on a match on Structure ID occurring in Facilities-ID.