DELETE RECORD WITH SPECIFIC VALUE
Posted: Thu 05 Oct 2006 21:06
Hi!
In MyQuery generates me an DELETESQL: DELETE FROM table WHERE id=:OLD_ID
works fine if I want to delete selected record like MYQUERY.DELETE;.
Now I want to delete like this
DELETE FROM table WHERE id_secondtable=:idfromsecondtable
Yes I can put new QUERY on my form and write this SQL in it and do MYnewQUERY.CLOSE;
MYnewQUERYOPEN;
but I don't want to create new query, I want to use my old QUERY and use QUERY.DELETE option.
how to do this?
Is there any tutorials or demo programs how to do different things with MYQUERY ?
Thanks!
In MyQuery generates me an DELETESQL: DELETE FROM table WHERE id=:OLD_ID
works fine if I want to delete selected record like MYQUERY.DELETE;.
Now I want to delete like this
DELETE FROM table WHERE id_secondtable=:idfromsecondtable
Yes I can put new QUERY on my form and write this SQL in it and do MYnewQUERY.CLOSE;
MYnewQUERYOPEN;
but I don't want to create new query, I want to use my old QUERY and use QUERY.DELETE option.
how to do this?
Is there any tutorials or demo programs how to do different things with MYQUERY ?
Thanks!