表B姓名这1列的计算代码: dim s2 as row = tables("表B").current dim a1 as datarow = datatables("表A").find("年级 = '"& s2("年级") & "' and 班级 = '"& s2("班级") & "' and 班级名次 = '"& s2("排名") & "'") s2("姓名") = a1("姓名")
表B的事件datacolchanged 的代码: if e.datacol.name = "排名" then datatables("表B").datacols("姓名").recalc end if
|