L
Lee Kennedy
Hello all
I have a form (Orders) with a subform attached (CallOffs). The form is used
to record orders of stationery items with a supplier. When a new order is
created not all of the items ordered will be delivered straightaway but may
be 'called off' in batches of 3 or 4 over a period of a few months. At the
point of order, one call off batch must be requested.
I've set this up as:
Orders PK is OrderNumber
CallOffs PK is CallOffID, FK is OrderNumber
I am now having trouble validating the order process for new orders. I tried
to use the dcount function to determine whether there are any CallOff
records with the OrderNumber on the form and I added this to a 'Close Form'
button. Although this seemed to work initially, I found I could just move to
the next record and then close the form, bypassing the validation I'd set
up. Do I have to change any settings on the form to restrict the user moving
to a new or blank record? (How do I do this?) Or is it an event procedure
like BeforeUpdate on the Orders form that I need to use?
If anyone can offer any suggestions on how I proceed, I'd really appreciate
it!!
Thank you
Lee
I have a form (Orders) with a subform attached (CallOffs). The form is used
to record orders of stationery items with a supplier. When a new order is
created not all of the items ordered will be delivered straightaway but may
be 'called off' in batches of 3 or 4 over a period of a few months. At the
point of order, one call off batch must be requested.
I've set this up as:
Orders PK is OrderNumber
CallOffs PK is CallOffID, FK is OrderNumber
I am now having trouble validating the order process for new orders. I tried
to use the dcount function to determine whether there are any CallOff
records with the OrderNumber on the form and I added this to a 'Close Form'
button. Although this seemed to work initially, I found I could just move to
the next record and then close the form, bypassing the validation I'd set
up. Do I have to change any settings on the form to restrict the user moving
to a new or blank record? (How do I do this?) Or is it an event procedure
like BeforeUpdate on the Orders form that I need to use?
If anyone can offer any suggestions on how I proceed, I'd really appreciate
it!!
Thank you
Lee
