Hi Gustavo,
if you leave the ZAP, but remove the PACK does it work properly? PACK closes the table, copies all undeleted records to a temp table, deletes the table then renames the temp table. So maybe the problem is the grid's recordsource being yanked out from under it causing the problem.
>I've found that if I delete the ZAP command (encapsulated by
>go_SQL.cmpA_tmpf14.m_Zap()) and get rid of the records by deleting them(actually this table stores very few records) without packing, it works as expected.
>
>At a first glance it seems like the zap command is disconnecting the grid from its rowsource...or something like that... because the columns remain in the grid (they don't go away). What I really don't understand is why this code works fine when I am debugging it.