how to restict the user to close the form

subedarsubedar Member Posts: 7
Hi all

I want to restrict the user to close the Navision form on a specific condtion.

I have the code on form close event

if vender.postinggroup = '' then
begin
error('can not be close form');
form.run(21)
end
else
exit;


but this code is not working.

Comments

Sign In or Register to comment.