对于下列语句,若不用“表事件”,而用“窗口按纽”,不知怎样修改?(在易表中刷新公式,常常可改为按纽方式执行,不知fox中能否实现?) If e.DataCol.Name = "学号" Then Dim dr1 As DataRow = e.DataRow Dim dr2 As DataRow = DataTables("成绩库").Find("[学号] = " & dr1("学号")) If dr2 IsNot Nothing Then dr1("姓名") = dr2("姓名") dr1("班级") = dr2("班级") End If End If
For Each dr1 As Datarow In DataTables("成绩个体跟踪1").DataRows Dim dr2 As DataRow = DataTables("成绩库").Find("[学号] = " & dr1("学号")) If dr2 IsNot Nothing Then dr1("姓名") = dr2("姓名") dr1("班级") = dr2("班级") End If next