P
Primoz Bradac
Hi everyone!
I'm interested in the solution of the following "problem":
Let's have two tables in an orders database: tblOrders and
tblOrdersDetails. To enter data into these two tables the user has to be
presented a form with a subform. He first has to fill in the information
about the order (order number, CustomerNo, Date etc.) into the form and
as many entries for order details (Part, quantity, unit of measurement
etc.) as needed into the subform.
As the data integrity is enforced (the two tables are related through
the order number) the record in tblOrders has to be inserted before any
order items are added. How is this achieved?
What is the general or most common approach to it? What is usually used
with the subform: the datasheet or form view (the former offers somewhat
better view about what has been entered already)
Or is it better to first show the user the form (without any subform)
for entering general data about the order (which adds a record in the
tblOrders table) and then show him the form for entering order details.
What if he changes his mind and stops before entering any order details.
How to get rid of the orphan record in the tblOrders table in this case?
I'd appreciate any hints or references.
TIA,
Primoz
I'm interested in the solution of the following "problem":
Let's have two tables in an orders database: tblOrders and
tblOrdersDetails. To enter data into these two tables the user has to be
presented a form with a subform. He first has to fill in the information
about the order (order number, CustomerNo, Date etc.) into the form and
as many entries for order details (Part, quantity, unit of measurement
etc.) as needed into the subform.
As the data integrity is enforced (the two tables are related through
the order number) the record in tblOrders has to be inserted before any
order items are added. How is this achieved?
What is the general or most common approach to it? What is usually used
with the subform: the datasheet or form view (the former offers somewhat
better view about what has been entered already)
Or is it better to first show the user the form (without any subform)
for entering general data about the order (which adds a record in the
tblOrders table) and then show him the form for entering order details.
What if he changes his mind and stops before entering any order details.
How to get rid of the orphan record in the tblOrders table in this case?
I'd appreciate any hints or references.
TIA,
Primoz