View Single Post
  #3  
Old June 17th, 2008, 03:46 PM posted to microsoft.public.access.tablesdbdesign
Klatuu
external usenet poster
 
Posts: 7,074
Default Handling Transfers

I did this once a long time ago for a city's shared inventory system. For
example, Parks and Recreation has 100 feet of pipe and Streets has 50 feet of
pipe. Streets needs to install 80 feet of pipe. This takes 3 transactions.
1. Deduct 30 feet from Parks and Recreation
Transaction Type Transfer Out.
Transfer Number 30002 (to tie the in and out together for
accounting/audit)
2. Add 30 feet to Streets
Transaction Type Transfer In.
Transfer Number 30002 (to tie the in and out together for
accounting/audit)
3. Deduct 80 feet from Street
Transaction Type Consumed

So each transaction applies to a specific vendor. To do a transer takes two
transactions, one for out and one for in. Each Transaction needs a type.
Received, Consumed, Destroyed, Returned, Transfered Out, Transfered In, etc.
When you do a transfer, you need a field to tie the two transactions
together for accounting, audit, and tracking purposes.

Although you may have 500 gallons of a product sitting on the floor, you
should not carry that as one quantity in inventory. You carry the quantity
in inventory by dealer. Your table structure should, however, allow you to
be able to know the total inventory of the product. So you need something
like
ProductID
DealerID
QtyOnHand

--
Dave Hargis, Microsoft Access MVP


"A.Finnegan" wrote:

I am attempting to create a database that will mainly handle transfers of
materials between dealers. This is an aerial application business, so
dealers bring us chemicals that we apply on crops. Dealers are responsible
for providing us with the correct amount of chemicals for the fields they
need sprayed. We can't always use their specific chemical. All of our 15 or
so dealers bring the same chemicals, so we often use one dealer's chemical on
another's field. I need to keep track of this debit/credit system, so I
always know who owes who what. I am having trouble implementing this idea
into Access so any transaction or transfer will deduct and add the chemical
to the dealers involved in the transfer.
Basically like this:
Dealer A transfers 40 gallons of chemical Z to Dealer B. Both Dealers had
60 gallons of chemical Z sprayed for the day.
At the beginning of the day Dealer A had 120 gallons, Dealer B had 50.
So, after all is said and done, Dealer A should have 20 gallons, Dealer B
should have 30.
I need a way to keep track of the transfer and the amount sprayed for each
day.
Any thoughts and suggestions would be much appreciated.