Stock System Implementation

Lord Max

Registered User.
Local time
Today, 14:50
Joined
Sep 13, 2010
Messages
12
Hello,

I have a database with a table of my 'Customers', and a linking table called 'Purchases' (assigning purchases of items to customers) linked with an 'Items' table.

Currently, when a customer purchases an item, the Purchases table needs to be updated manually, and the stock of each item needs to manually be decreased.

I've been trying to work out a system that would allow me to select an item via a form for a customer, and allow me to press a 'Buy' button which then AUTOMATICALLY decreases the stock in the items table and records the Customer ID and Item ID in the purchases table. The later isn't entirely necessary, but would be nice if possible, my main source of problems is finding a way to get a system that allows an item to be bought, and have the stock thus decrease.

I've been fiddling around with this, with things like update queries, subforms, but haven't found a solution yet. Anybody have any tips or ideas?

Thank you!

Max
 
Stock transactions should hold StockIn and Stock through Clients Purchases and should be able to look after itself StockIn Qty * 1 StockOut Qty -1. This is very simplified.

Simon
 

Users who are viewing this thread

Back
Top Bottom