H
Harry van Rijn
I have a form with an ORDER recordset and
a subform with an ORDER_DETAIL recordset.
The 2 recordsets are related by ORDER_ID.
Now I can add as much new ORDER records as possible,
WITHOUT any ORDER_DETAIL in it. How can I control this
behaviour so that after 1 new record is added, new additions
are blocked?
I tried to catch the BeforeUpdate event of the ORDER_DETAIL,
and checked here the number of records in the ORDER_DETAIL.
If there are 0 records, I should state: me.undo But when I start
with an empty ORDER table, it seems impossible to add new orders
this way.
How can I solve this ?
a subform with an ORDER_DETAIL recordset.
The 2 recordsets are related by ORDER_ID.
Now I can add as much new ORDER records as possible,
WITHOUT any ORDER_DETAIL in it. How can I control this
behaviour so that after 1 new record is added, new additions
are blocked?
I tried to catch the BeforeUpdate event of the ORDER_DETAIL,
and checked here the number of records in the ORDER_DETAIL.
If there are 0 records, I should state: me.undo But when I start
with an empty ORDER table, it seems impossible to add new orders
this way.
How can I solve this ?