update报错,请指点

update报错,请大虾指点Update table1inner join table2 on table1.idtable2.idSet table1.noMax(table2.

update报错,请大虾指点
Update table1 inner join table2 on table1.id=table2.id
Set table1.no=Max(table2.no) 
Where table2.id =1 
报 试图执行的查询中不包含作为聚合函数一部分的特定表达式“no”
请问如何 解决

[解决办法]
update table1
set [no]=dmax('[no]','table2','id='&id)

假设ID为数字型