Question : In Form View, how should I manage adding a new line (record) or delete this added record?

I have a form linked with an Oracle table. When I select a checkbox on the form, since it's set as Me!Dirty = False, a new blank line will be added to the form automatically, sometimes, I don't want this happen because I want to make sure all the input text box in current line is not null. How should I control the event in adding a new line (record) so that when all the rules are met, a new blank line is added automatically to be ready to get input (just as Acess is doing right now), but when the validation is failed, it does not automatically adds a new blank line? Thanks.

Answer : In Form View, how should I manage adding a new line (record) or delete this added record?

The new blank line is created as soon as the current new line is being entered.  This is automatic.  Although the line appears on the form, it's not a record until you enter data in the new line.
If you want to disable the new record until the current record is accurate, do some validation in the before update event of the form.  If the validation doesn't pass - CANCEL = TRUE.

Scott C
Random Solutions  
 
programming4us programming4us