Hi Walter,
I suppose that the popup call is made from a specific procedure. I.e. Not the browse which normally calls the insert, update delete or view?
In that case you can put a test for the parent procedure on the insert button.
E.g.: loc:parent <> 'caller'
Where caller is the specific procedure that makes the popup call.
Make sure that the procedure name is all lower case or else your test won't work.
Regards,
Rene Simons