在表里面限制
http://www.foxtable.com/webhelp/scr/0615.htm
http://www.foxtable.com/webhelp/scr/0605.htm
你写的代码没问题,你弹出 msgbox(User.roles) 看看