上面 rowsource对应的是combo1 更正一下
thisform.combol1.rowsource="select distinct 采购时间 from 物品采购 into cursor 临时表 where 物品名称="钢笔" AND YEAR(采购时间)=2022 "
thisform.grid1.recordsource="select distinct 采购时间 from 物品采购 into cursor 临时表 where 物品名称="钢笔" AND YEAR(采购时间)=2022 "