P
PeteC
Hi,
I'm working on a small stock system which is handled by telesales operators.
A customer will ring in, and give their 'shopping list' of required items.
The Customer record has a subform of ordered items, showing the name and
number ordered of each.
The problem with the system at present is that the operators simply enter
the items into the subform, and there isn't any checking of stock. I need to
add some validation, so that when they enter the item name and quantity, the
current stock level is checked. If the stock level is below zero, I need the
operator to be prompted to either cancel the line, select an alternative, or
put it on backorder.
Where is the best place to enter this checking code? I'm tempted by the
'Before Update' code block, but I'm not sure how to manipulate it. Any and
all pointers welcomed!
TIA,
Pete.
I'm working on a small stock system which is handled by telesales operators.
A customer will ring in, and give their 'shopping list' of required items.
The Customer record has a subform of ordered items, showing the name and
number ordered of each.
The problem with the system at present is that the operators simply enter
the items into the subform, and there isn't any checking of stock. I need to
add some validation, so that when they enter the item name and quantity, the
current stock level is checked. If the stock level is below zero, I need the
operator to be prompted to either cancel the line, select an alternative, or
put it on backorder.
Where is the best place to enter this checking code? I'm tempted by the
'Before Update' code block, but I'm not sure how to manipulate it. Any and
all pointers welcomed!
TIA,
Pete.