MDB升迁为ADP后,以前的查询只要是引用窗体控件值作为条件的都会出错
如下面的语句:
SELECT *
FROM usysItems
WHERE (((usysItems.FItemNumber)>0) AND ((usysItems.FGrouping)=[forms]![frmSysItemsManagement]![lstGrouping]));
如果语句是放在VBA中,则可以,不过要修改一下(设FGrouping字段为字符串型)
me.recordsource="SELECT * FROM usysItems WHERE FItemNumber>0 AND FGrouping='"& [forms]![frmSysItemsManagement]![lstGrouping])) &"'"