DELETE IF !TABLEUPDATE() parent table then =TABLEREVERT() display msg saying so ELSE IF !TABLEUPDATE() child table =TABLEREVERT() display msg saying so ELSE thisform.cmdnext.click() ENDIF ENDIFWhich seems to work ok. It's still a big mystery to me. It's something I will play around with in the evenings... (That's the joy of having computers and programming as a hobby!)