访问查询更改0字段

时间:2020-04-18 20:44:37

标签: ms-access

以下是两个查询,第二个查询使用第一个。 第一个查询:

SELECT [Volunteering Place].Place_ID
FROM [Volunteering Place]
WHERE ((([Volunteering Place].Place_Name)=[Enter new place name]));

这是独立的。 第二个查询:

UPDATE ([Volunteering Place] INNER JOIN [Query-Update_Volunteering_Place1] ON [Volunteering Place].Place_ID = [Query-Update_Volunteering_Place1].Place_ID) INNER JOIN (Pupils INNER JOIN [Volunteering_Place-Pupils] ON Pupils.ID = [Volunteering_Place-Pupils].ID) ON [Volunteering Place].Place_ID = [Volunteering_Place-Pupils].Place_ID SET [Volunteering_Place-Pupils].Place_ID = [Query-Update_Volunteering_Place1]![Place_ID]
WHERE (((Pupils.First_Name)=[Enter pupil Name]) AND (([Volunteering Place].Place_Name)=[Enter the name of the place you would like to change]));

请记住,尽管我确实了解SQL,但我还是在设计视图中设计了查询并且没有用SQL编写查询。

该查询应该在小学生和志愿场所之间的链接表中编辑场所ID。第一个获取地名的输入,并在志愿场所表中找到相应的场所ID。第二个查询将位置ID更改为在第一个查询中找到的位置ID,其中从名称的输入转换了瞳孔ID,并从位置名称的输入转换了先前存在的位置ID。 A screenshot of the table.

0 个答案:

没有答案
相关问题