I have two table named 'stock' & 'delivery' with following fields-
stock-
1.product id
2.date
3.quantity
delivery
1.memo no
2.product id
3.date
4.quantity
I need whenever i input value in 'quantity ' field of "delivery" table it should search automatically, is that quantity available in "stock" table or not. if not available, a massage should appear like this "quantity not available" on moving to other field or button or on pressing tab or clicking any where of the form. PLZ give me a proper solution. thanx.....