Ratib Hussaini
Registered User.
- Local time
- Tomorrow, 01:52
- Joined
- Nov 7, 2012
- Messages
- 31
I have inventory query with following fields
Product ID , Purchased, Sold,On Order, Available, LocationA, LocationB, LocationC
where locationA, B ,C represent the quantity available in each location.
Available represents the total quantity available in 3 locations
In order details subform, i have the following fields
Product ID, Location ID, QTY, Price, Total, status
Now the problem is , I dont want the user to give a qty more than the qty available in the location selected.
I tried to set validation rule via VBA in after update property of Location ID,,, but it shows an error that i have used visual basic code.
Can you give your idea please, what should i use here, thanks in advanced.
Product ID , Purchased, Sold,On Order, Available, LocationA, LocationB, LocationC
where locationA, B ,C represent the quantity available in each location.
Available represents the total quantity available in 3 locations
In order details subform, i have the following fields
Product ID, Location ID, QTY, Price, Total, status
Now the problem is , I dont want the user to give a qty more than the qty available in the location selected.
I tried to set validation rule via VBA in after update property of Location ID,,, but it shows an error that i have used visual basic code.
Can you give your idea please, what should i use here, thanks in advanced.