参考
http://www.foxtable.com/help/topics/2256.htm
代码改成
If User.Group = "都安县" Then DataTables("订单").LoadFilter = ""Else DataTables("订单").LoadFilter = "乡镇 = '" & User.Group & "'"End IfDataTables("订单").Load()