以文本方式查看主题

-  易表在线答疑  (http://egrid2000.com/dvbbs/index.asp)
--  用户社区  (http://egrid2000.com/dvbbs/list.asp?boardid=2)
----  请问关于最大值筛选问题  (http://egrid2000.com/dvbbs/dispbbs.asp?boardid=2&id=2108)

--  作者:ruochen
--  发布时间:2011/8/9 17:03:00
--  请问关于最大值筛选问题
版主好:我想在“会员类型”列,根据顾客充值的最大值确定其类型,有“会员卡”,“ 金卡”,“ 贵宾卡”,“非会员”类别。怎么下面的公式不正确呢?请帮忙检查,感谢!

if(if(MaxFor("收银系统","本次充值金额","卡号"," = ",[卡号]) >= 100,"会员卡",if(MaxFor("收银系统","本次充值金额","卡号"," = ",[卡号]) >= 200,"金卡",if(MaxFor("收银系统","本次充值金额","卡号"," = ",[卡号]) >= 500,"贵宾卡", "非会员" ))))


--  作者:lyang70
--  发布时间:2011/8/10 8:47:00
--  
这样试试(会员类型列刷新公式):If([本次充值金额] >= 500,"贵宾卡",If([本次充值金额] >= 200,"金卡",If([本次充值金额] >= 100,"会员卡","非会员")))