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.
0
Comments
if vender.postinggroup = '' then
error('can not be close form');
An error like this works if they close the form from the record you're on. but if they click to next record and that record has the field properly filled in then they can close the form and your original problem has not been solved.
There are many post about mandatory fields. try the forum search.
Also here:
http://dynamicsuser.net/forums/t/23883.aspx
http://www.BiloBeauty.com
http://www.autismspeaks.org