Full Version: need product qtyonhand compared to qtytobeordered
UtterAccess Discussion Forums > Microsoft® Access > Access Queries
codyvance
When i fill out the purchase requisition and change the quantity for an item, i want it to check the quantity we have on hand in my products table to see if the quantity requested is available and if not display a popup box saying "Item # so and so has only # in stock". Thanks
HiTechCoach
Place the VBA code in the after update event for the "quantity for an item".

Steps:

  • Get the quantity on hand ( probably by opening a recordset)
  • See if quantity requested > quantity on hand
  • display a message is true
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.