F
fluganto
Unregistered / Unconfirmed
GUEST, unregistred user!
各位大俠,最近使用AdoTable遇到一個問題:先往AdoTable時增加一筆記錄,
AdoTable1.insert;
AdoTable1.fieldbynaem["item_no"].asstring:='A'
AdoTable1.fieldbynaem["price"].asFloat:=1;
AdoTable1.fieldbynaem["qty"].asFloat:=0;
AdoTable1.post;
然後更改 qty(使用 DBEDit),在DBEdit的onKeyPress寫了事件,
if key=char(13) then
.
.
AdoTable1.Edit;
AdoTable1.Post; (這一句出了問題?!)
卻老是提示有問題:
Row cannot be located for updating.Some values may have been changed
since it was last read.
不知道問題是出在哪裡?
哪位可以幫幫我?
謝謝!!
AdoTable1.insert;
AdoTable1.fieldbynaem["item_no"].asstring:='A'
AdoTable1.fieldbynaem["price"].asFloat:=1;
AdoTable1.fieldbynaem["qty"].asFloat:=0;
AdoTable1.post;
然後更改 qty(使用 DBEDit),在DBEdit的onKeyPress寫了事件,
if key=char(13) then
.
.
AdoTable1.Edit;
AdoTable1.Post; (這一句出了問題?!)
卻老是提示有問題:
Row cannot be located for updating.Some values may have been changed
since it was last read.
不知道問題是出在哪裡?
哪位可以幫幫我?
謝謝!!