Stock Table structure



Hi,

I want to setup an inventory dabase and I was not sure what structure to
adopt. Below are two options, hope that someone would advice

Option 1
I just add another typTransactionType that will list all type of transaction
eg Sales,Purchase, Return

tblTransaction
TransactionID Long PK
TransactionDate Date/Time
CustomerID Number
TransactionTypeID Number

tblTransactionDetails
DetailsID
TransactionID Foreign key
ProductID Number
Qty
Unit
UnitPrice


Option 2

I need to set up two tables for Purchase, Sales, Return etc...

tblPurchase
TransactionID Long PK
TransactionDate Date/Time
SupplierID Number

tblPurchaseDetails
DetailsID
TransactionID Foreign key
ProductID Number
Qty
Unit
UnitPrice


tblSale
TransactionID Long PK
TransactionDate Date/Time
CustomerID Number
TransactionTypeID Number

tblSaleDetails
DetailsID
TransactionID Foreign key
ProductID Number
Qty
Unit
UnitPrice


.



Relevant Pages

  • Re: using find in subform
    ... Also the listbox in Form1 is called ... >>ProductID Autonumber ... >>TransactionDate Date ... >>The Supply Request form Record Source is from Supply ...
    (microsoft.public.access.formscoding)
  • Re: Stock Table structure
    ... TransactionTypeID to use 1 and -1) until reading your comment below. ... TransactionDate Date/Time ... TransactionID Foreign key ... ProductID Number ...
    (microsoft.public.access.tablesdbdesign)