在数据环境中添加表,设置该表的属性:缓冲模式为5,即开放式表缓冲先输入数据, 在使用tableupdate()保存数据之前,运行一段代码.该代码用来检测新输入的学号在原表中有没有.示例:lcxh=新输入的学号local larrxhdimension larrxh(1)larrxh(1)=0select count(学号) from 表 where 学号=lcxhif larrxh(1)>0 messagebox('学号重复') return .f.endif