回贴首先应该说明有没有解决问题?
SortCol("总分",2) And EvalFor(Grid,"考号","Row") And
EvalFor(Grid,"考室","1",1,CountFor(Grid,"班级","=",1)) And SortCol("考室",1) And
EvalFor(Grid,"考室","2",1,CountFor(Grid,"班级","=",2)) And SortCol("考室",1) And
EvalFor(Grid,"考室","3",1,CountFor(Grid,"班级","=",3)) And SortCol("考室",1) And
EvalFor(Grid,"考室","4",1,CountFor(Grid,"班级","=",4)) And SortCol("考室",1) And
EvalFor(Grid,"考室","5",1,CountFor(Grid,"班级","=",5)) And SortCol("考室",1) And
EvalFor(Grid,"考室","6",1,CountFor(Grid,"班级","=",6)) And SortCol("考室",1) And
EvalFor(Grid,"考室","7",1,CountFor(Grid,"班级","=",7)) And SortCol("考室",1) And
EvalFor(Grid,"考室","8",1,CountFor(Grid,"班级","=",8)) And SortCol("考室",1) And
EvalFor(Grid,"考室","9",1,CountFor(Grid,"班级","=",9)) And SortCol("考室",1) And
EvalFor(Grid,"考室","10",1,CountFor(Grid,"班级","=",10)) And SortCol("考室",1) And
SortCol("考号",1) And
EvalFor(Grid,"考室编号","CountFor(Grid,""考室"",""="",[考室],1,Row)")
[此贴子已经被作者于2012-10-26 10:48:24编辑过]