VAR
counter:integer;
begin
T_stud_info_1.Open; //打开表
if T_stud_info_1.RecordCount>0 then
begin
T_counter_c.Open; //打开表
counter:=T_counter_c.FieldByName('COUNTER_VALUE').asInteger;
//inc(counter);
Counter:=Counter+1;
T_counter_c.Edit;
T_counter_c.FieldByName('Counter_Value').Value:=counter;
T_counter_c.Post;
T_change.Open;
T_change.appendrecord([counter,i_stud_id_1.text,i_change.itemindex,now,i_descrip_1.text]);
button1click(nil);
end
else
application.MessageBox('请确认输入学号是否正确!','错误',MB_ok);end;
运行程序怎么老是说 field 'ID' must have a value
我表里面是有值的。郁闷ing
哪位大虾可以帮我指出来?感谢啊。。
counter:integer;
begin
T_stud_info_1.Open; //打开表
if T_stud_info_1.RecordCount>0 then
begin
T_counter_c.Open; //打开表
counter:=T_counter_c.FieldByName('COUNTER_VALUE').asInteger;
//inc(counter);
Counter:=Counter+1;
T_counter_c.Edit;
T_counter_c.FieldByName('Counter_Value').Value:=counter;
T_counter_c.Post;
T_change.Open;
T_change.appendrecord([counter,i_stud_id_1.text,i_change.itemindex,now,i_descrip_1.text]);
button1click(nil);
end
else
application.MessageBox('请确认输入学号是否正确!','错误',MB_ok);end;
运行程序怎么老是说 field 'ID' must have a value
我表里面是有值的。郁闷ing
哪位大虾可以帮我指出来?感谢啊。。
解决方案 »
- VC++6.0源码改成delphi源码,急呀!
- 一个关于拷贝的问题
- Delphi8大讨论。优点,缺点。好的,郁闷的。
- 最后五分求一个问题……..
- 我正在做一个三层结构的东西,可现在做来做去越来越觉的像两层的,有没有大哥给指点一下,真正的三层结构应该是什么样的呀
- 我的label最后一个字只能看见一半,真么改?
- 小问题。
- 我用Query+UpdateSQL,为什么总提示Update Failed?
- 请问ADO数据库程序发布问题:
- 为什么delphi调用SQL Server的表不返回字符串类型的字段?
- 用Delphi怎么实现Internet共享设置? 在线等高手解决
- delphi 注入进程的dll 如何调用另一个dll
怀疑你的T_change.appendrecord([counter,i_stud_id_1.text,i_change.itemindex,now,i_descrip_1.text]); 有问题