Function ERROR

AlkroAlkro Member Posts: 115
Why in a Form, when execute an ERROR function like:

ERROR('Line exist');

when user Accept, Form is closed. This form is a subform and close Main Form. How can i avoid it.

br

Answers

  • kapamaroukapamarou Member Posts: 1,152
    On which trigger is the command?
  • AlkroAlkro Member Posts: 115
    OnNewRecord()

    I want user can insert only 1 line. If try to insert a second line, error must appear but don't closing the Main Form.
  • kapamaroukapamarou Member Posts: 1,152
    Try moving the logic on the OnInsert trigger
  • AlkroAlkro Member Posts: 115
    Works fine :)

    Thanks!
Sign In or Register to comment.