Hi
What's the best approach to deal with this?
I have a orders form, with an order-items subform, in a one to many relationship. The user clicks a command button to add an new order, fills in some fields and then, may or may not add order items at that stage. The order is automatically saved when the form is closed but there may be a blank order-item record stored, even if the user has entered no items. How can I make sure that, if the order-item record has no data, the order-item record is not saved, even though the order header is?
Which event would be the most suitable to test for the absence of data in the child record.?
Help would be much appreciated.
Terry
What's the best approach to deal with this?
I have a orders form, with an order-items subform, in a one to many relationship. The user clicks a command button to add an new order, fills in some fields and then, may or may not add order items at that stage. The order is automatically saved when the form is closed but there may be a blank order-item record stored, even if the user has entered no items. How can I make sure that, if the order-item record has no data, the order-item record is not saved, even though the order header is?
Which event would be the most suitable to test for the absence of data in the child record.?
Help would be much appreciated.
Terry