VF编程:怎样利用表单向表中添加记录?谢谢!!!!

来源:百度知道 编辑:UC知道 时间:2024/05/28 04:59:16
若设置XH为方索引,

先在表单中加一个按纽空件,双击该按纽,在click事件中写入代码:
go botton
append blank
edit
thisform.refresh

append blank
or

insert

在表单上加一表格控件,设置它的control source为需要添加的表,表格控件的readonly=.f. 再在表格一旁加一按钮控件,并在click事件中键入:
select aa &&假设你的表名为aa
appe blan
thisform.grid1.setfocus &&grid1是表格控件名称.