Hi
progressing on the project .
Now trying to update a foreign key using the code below
So I'm updating the field fk_GraveID in the table tblDeceased with the value from the table tblGrave and the field GraveIDCode:UPDATE tblDeceased SET fk_GraveID = tblGrave.GraveID WHERE tblDeceased.GraveNo=tblGrave.GraveNo AND tblDeceased.Plot=tblGrave.Plot;
The criteria is that GraveNo and Plot fields must match as each plot can have graves no 1-200 but each plot is designated by a specific letter ie you can have plot A grave 2 and then PLot B grave 2
when I run the query I get the error
Enter Perameter Value
tblGrave.GraveID
InHTML I would suspect a typo but can see nothing
is the AND not valid?
thanks
Ian