Prevent insert of records

HenningThHenningTh Member Posts: 59
Hi all
I have a form in which records are made from a Codeunit.
Users are then to key in some data, but they should not be allowed to insert new records.
How do I prevent that without any errormessages og stop - simply ignoring attempts to insert a new record.
Have played around with the triggers "OnBeforePutRecord", "OnNewRecord" and "OnInsertRecord" but without a succes I want to talk about.
Any idea would be appreciated.

THanks in advance.

ps have tried some of the advices I found in here, but still cannot make it work.

Comments

  • udayrmerudayrmer Member Posts: 171
    Set property of that form InserAllowed False.
    Uday Mer | MS Dynamics NAV Techno-Functional Consultant
Sign In or Register to comment.