Hi, I am using an SQLQuery and the "AfterScroll is working fine for what I need from it.
I am using the following to insert records and it does what I need for an Insert. But, I notice there is an AfterInsert, AfterPost etc within SQLQuery but I cannot figure out how to use them.
I'd like to grab the new auto-inc value ("recID") for the Inserted record. I assume the AfterPost event would be a good spot to grab that, but, cannot find how to trigger that event.
SQLQuery1.Close;
sqlquery1.SQL.clear;
SQLQuery1.SQL.add ('INSERT INTO tblCust (zAccount)');
SQLQuery1.SQL.add ('VALUES ("'+Edit1.Text+'");');
SQLQuery1.ExecSQL;
SQLTransaction1.CommitRetaining;
Could someone please give me a few code pointers or some place to look for information in using these events. The above code does not trigger any events. Well, none that I can make work.
Thanks.