直接对库存表筛选就行啊
Tables("库存表").filter = "标志='1'"
或者,直接生成查询表
http://www.foxtable.com/webhelp/scr/0695.htm
或者填充数据啊
http://www.foxtable.com/webhelp/scr/1533.htm
http://www.foxtable.com/webhelp/scr/0680.htm