How to delete the record just inserted

Hi everyone,

I have an issue with records insertion in NAV.

In my record, I need to do some control on a field called amount, if it is bigger than a certain value, an error message is and the user is called to modify the value of that field…

The problem is that NAV inserts the record anyway, with a zero for the amount field.

I want to be able to delete the records when the error message is raised…

How can I do that?

Thanks in advance :)

Did you try setting the DelayedInsert property to Yes and a TESTFIELD on the Amount filed?

You need to call the error message before inserting the record …Check your code.