Delete records from a table

Need a little more information from you. What is the names of

The name of the window the table is on
The name of the table you want to update
The name of the popup window

at first glance everything looks ok, but I think your not referencing the window where the table is located. Just a little more info will make it a little more clear…