>Hi all,
>In a form I have 2 tables in data env. (cursors optimistic buffered at table level (5)) cursors are in relation as one to many (table "workers" and table "workdays" as 5 recs with fields day and hour they start and end to work.
>When insert work is request I append blank record in table "workers", replace the primay key with appropriate value and insert 5 records in table "workdays" with default values (INSERT INTO Workers ...). If user want to leave without save data click undo cmd that contain a TABLEREVERT(.T.). This revert only data in the main table "workers" leaving the 5 inserted records in table "workdays". Why tablerevert doesn't revert all tables ?
>T.I.A.
>
>Dino.
Dino,
Use tablerevert() with alias. Otherwise it would only revert current alias.
tablerevert(.t.,'Child')
tablerevert(.t.,'Parent')
Cetin