Page 1 of 1

How to use UpdateRowSource ?

Posted: Fri 19 Nov 2004 18:38
by nuntio2000
Please could you provide a sample code to insert or update a new row
in a table using UpdateRowSource?

Re: How to use UpdateRowSource ?

Posted: Thu 25 Nov 2004 10:44
by Oleg
For example, you can set the following query to InsertCommand INSERT INTO DEPT VALUES(:p1,:p2,:p3);SELECT LAST_INSERT_ID() AS DEPTNO and LAST_INSERT_ID value will return in dataset if you use UpdateRowSource.FirstReturnedRecord. UpdateRowSource.OutputParameters makes no sense as output parameters don't work in MySQL now.