Message: Cannot retrieve ResulSet Data

Forum related to version 6.1.5 of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
chuckie
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 22.11.2005, 16:49

Message: Cannot retrieve ResulSet Data

Post by chuckie »

Hi everybody,
Why does my Delphi7 application,
after a regular append to a table

ZTfoo1.append;
Ztfoo1.FieldByName('text').Value:= EdPN.Text;
ZTfoo1.Post;

and an Insert


INSERT INTO foo2 (id,text) VALUES(LAST_INSERT_ID(),'text');

show the message
Cannot retrieve ResultSet Data, if queries work well and I obtain that I expected?

Thank you in advance
ciaoooo
tygrys
Junior Boarder
Junior Boarder
Posts: 33
Joined: 09.12.2005, 18:31
Location: Poland

Post by tygrys »

Maybe you should use ExecSQL intead of an Open in the "Insert...." Query.

tygrys
chuckie
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 22.11.2005, 16:49

Post by chuckie »

so easy?
thank you tygrys, you were right.
works!

:oops:
Post Reply