My problem is that currently, I have an order / delivery system on microsoft access. At the moment, a quantity for a particular delivery line can be larger than the balance on the order.
For my database, an order can have many product lines, and a balance is calculated (quantity ordered - quantity delivered) for each product line. At the moment, when I go to create a delivery, that has many delivery lines (delivery lines is a table used to break down the many-to-many relationship of product lines and deliveries), I can input a quantity that exceeds the calculated balance of a product line.
How would I go about creating a validation rule of a value where it cannot exceed a calculated value (calculated from values from another table) in a data entry form.