W
wangxinf1
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm3.FlatButton23Click(Sender: TObject);//下一步按钮,存入输入的内容
begin
adoTable1.edit;
adoTable1.fieldbyName('ajmc').value := flatdbEdit1.text;
adoTable1.fieldbyName('fasj').value := flatdbEdit2.text;
adoTable1.fieldbyName('fadq').value := flatdbEdit3.text;
adoTable1.fieldbyName('ajlb').value := flatDBComboBox1.text;
adoTable1.fieldbyName('ajxz').value := flatdbEdit4.text;
adoTable1.fieldbyName('zasd').value := flatdbEdit5.text;
adoTable1.fieldbyName('zagj').value := flatdbEdit6.text;
adoTable1.fieldbyName('qt').value := flatdbEdit7.text;
adoTable1.fieldbyName('zfxm').value := flatdbEdit8.text;
AdoTable1.Post;
AdoTable1.insert;
pagecontrol3.activepage:=tabsheet14;
end;
procedure TForm3.FlatButton27Click(Sender: TObject);、、上一步按钮,回原来的重新编辑
begin
AdoTable1.delete;
pagecontrol3.activepage:=tabsheet13;
end;
实际执行时怎么老出错阿!我是用access,利用时间为编号,即编号默认值为now,
想输入完后,再建立一个新的给后来的作准备。如果想修改前面的,则删掉这个新建立的。
哪儿有问题????
begin
adoTable1.edit;
adoTable1.fieldbyName('ajmc').value := flatdbEdit1.text;
adoTable1.fieldbyName('fasj').value := flatdbEdit2.text;
adoTable1.fieldbyName('fadq').value := flatdbEdit3.text;
adoTable1.fieldbyName('ajlb').value := flatDBComboBox1.text;
adoTable1.fieldbyName('ajxz').value := flatdbEdit4.text;
adoTable1.fieldbyName('zasd').value := flatdbEdit5.text;
adoTable1.fieldbyName('zagj').value := flatdbEdit6.text;
adoTable1.fieldbyName('qt').value := flatdbEdit7.text;
adoTable1.fieldbyName('zfxm').value := flatdbEdit8.text;
AdoTable1.Post;
AdoTable1.insert;
pagecontrol3.activepage:=tabsheet14;
end;
procedure TForm3.FlatButton27Click(Sender: TObject);、、上一步按钮,回原来的重新编辑
begin
AdoTable1.delete;
pagecontrol3.activepage:=tabsheet13;
end;
实际执行时怎么老出错阿!我是用access,利用时间为编号,即编号默认值为now,
想输入完后,再建立一个新的给后来的作准备。如果想修改前面的,则删掉这个新建立的。
哪儿有问题????