Access stock taking system

%3CLINGO-SUB%20id%3D%22lingo-sub-2072804%22%20slang%3D%22en-US%22%3EAccess%20stock%20taking%20system%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2072804%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20a%20stock%20system%20with%20all%20relevant%20tables%20.My%20system%20can%20purchase%20products%20from%20relevant%20suppliers%20via%20email.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20create%20a%20system%20from%20this%20that%20can%20do%20a%20stock%20count%20(%20ie%20Physical%26nbsp%3B%20on%20hand)%3C%2FP%3E%3CP%3EI%20cant%20work%20out%20how%20I%20can%20get%20the%20system%20to%20remember%20the%20count%20as%20a%20history%20with%20the%20then%20purchase%20price.%20I%20have%20tried%20a%20make%20table%20but%20cant%20get%20any%20further%20than%20that%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20appreciated%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIvan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2072804%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2072900%22%20slang%3D%22en-US%22%3ERe%3A%20Access%20stock%20taking%20system%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2072900%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F926509%22%20target%3D%22_blank%22%3E%40Ivan__Torr%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhile%20you've%20done%20a%20good%20job%20of%20introducing%20the%20CONCEPT%2C%20there%20isn't%20really%20enough%20detail%20in%20that%20description%20to%20offer%20any%20suggestions.%20%22...all%20relevant%20tables...%22%20could%20mean%20a%20number%20of%20different%20things%20to%20different%20people%2C%20for%20example.%20And%20none%20of%20them%20would%20be%20able%20to%20do%20much%20with%20that%20anyway%20because%20we%20wouldn't%20know%20if%20OUR%20assumptions%20matched%20the%20reality.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CEM%3EL%3CSTRONG%3Eet's%3C%2FSTRONG%3E%20start%20with%20a%20relationship%20diagram.%3C%2FEM%3E%20%3C%2FSTRONG%3EThat'll%20get%20us%20started%20being%20able%20to%20ask%20you%20useful%20questions%20about%20the%20system%20and%20maybe%20lead%20to%20some%20suggestions.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2074629%22%20slang%3D%22en-US%22%3ERe%3A%20Access%20stock%20taking%20system%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2074629%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126074%22%20target%3D%22_blank%22%3E%40George%20Hepworth%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20attached.%20Sorry%20new%20to%20Access.%20Its%20amazing%20what%20Covid%20get%20a%20person%20up%20too.%3C%2FP%3E%3CP%3EIt%20is%20a%20Recipe%20and%20Dish%20coster%20.%20It%20also%20does%20allergens%20and%20Calorie%20counts%20on%20each%20dish.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehope%20this%20helps%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2075076%22%20slang%3D%22en-US%22%3ERe%3A%20Access%20stock%20taking%20system%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2075076%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F926509%22%20target%3D%22_blank%22%3E%40Ivan__Torr%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%20I%20see%20a%20number%20of%20things%20to%20comment%20on%2C%20many%20of%20which%20have%20little%20to%20do%20with%20the%20current%20Inventory%20question.%20Let's%20get%20those%20out%20of%20the%20way.%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EMulti-Value%20Field%20for%20PlatePic%20in%20TblPlating.%20As%20a%20matter%20of%20principle%2C%20most%20experienced%20Access%20developers%20refuse%20to%20use%20these%20things.%20I%20would%20recommend%2C%20therefore%2C%20that%20there%20be%20a%20separate%20table%20for%20the%20pictures%20and%20that%20the%20image%20files%20themselves%20be%20stored%20externally%2C%20not%20inside%20the%20accdb.%3C%2FLI%3E%3CLI%3EIndeterminate%20relationships%20between%20tblSizes%20and%20TblRecipes%20and%20TblFoodProducts%20and%20tblProdList.%20These%20should%20be%20designated%20as%20one-to-many%20and%20they%20should%20have%20Referential%20Integrity%20Enforced.%3C%2FLI%3E%3CLI%3ESeveral%20tables%20(TblOrders%2C%20TblSupp%2C%20and%20TblOrderPurch%2C%20as%20well%20as%20TblAllergens)%20which%20have%20no%20relationships%20identified.%20These%20need%20to%20be%20designated%20and%20have%20Referential%20Integrity%20Enforced%20on%20them.%20Otherwise%20it%20is%20all%20too%20easy%20to%20have%20%22orphan%22%20records%20added%20to%20tables.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EOkay%2C%20a%20couple%20of%20other%20things%20could%20bear%20attention%2C%20but%20overall%20it%20otherwise%20seems%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20looks%20like%20TblOrderPurch%20is%20where%20incoming%20product%20quantities%20are%20stored.%20It's%20not%20clear%20to%20me%2C%20though%2C%20what%20the%20difference%20is%20between%20ProdQty%20and%20PurchAmount.%20ProdQty%20appears%20to%20be%20the%20value%20that%20determines%20how%20much%20you%20have%20received%20of%20each%20product%2C%20though.%20That%20means%20your%20Stock%20Take%20will%20be%20based%20on%20a%20query%20that%20Sums%20ProdQty%20by%20ProdID%3A%3CBR%20%2F%3E%3CBR%20%2F%3ESELECT%20ProdID%2C%20Sum(ProdQty)%20As%20ProductQuantityPurchased%3C%2FP%3E%3CP%3EFROM%20tblOrderPurch%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20include%20additional%20tables%20to%20bring%20in%20things%20like%20ProdName%20from%20the%20TblProdList%2C%20or%20to%20bring%20in%20Dates%20from%20the%20TblOrders%20table%20to%20group%20purchases%20by%20time%20period%20(i.e.%20Group%20By%20OrderDate).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20get%20product%20quantity%20going%20out%2C%20it%20looks%20to%20be%20like%20%22Plate%22%20is%20the%20central%20concept%2C%20i.e.%20products%20are%20use%20in%20different%20recipes%20which%20are%20combined%20into%20%22Plates%22.%20But%20I%20can't%20tell%20for%20sure%20how%20you%20want%20to%20calculate%20that%20and%20which%20%22xxxQty%22%20field(s)%20to%20use.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20had%20to%20venture%20a%20guess%2C%20I%20would%20say%20that%20you'd%20need%20to%20include%20tblRecProducts%20to%20get%20the%20quantity%20per%20recipe%2C%20and%20join%20that%20to%20either%20TblRecipes%20or%20tblPlateRec%2C%20or%20both%2C%20to%20get%20to%20the%20RecQty%20and%20then%20join%20that%20to%20TblPlating%20to%20get%20to%20the%20ProdQtyPPlate%20in%20tblPlateProducts.%26nbsp%3B%20Once%20you%20get%20there%20you%20should%20have%20the%20quantity%20of%20each%20product%20used%20in%20the%20total%20number%20of%20plates%20sold.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20that%2C%20you%20should%20be%20able%20to%20finally%20join%20the%20two%20queries%20on%20ProdID%20to%20get%20the%20quantity%20in%20and%20the%20quantity%20out%20for%20a%20final%20value%20of%20remaining%20quantity%20in%20stock.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20that%20helps%20your%20thinking.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2078741%22%20slang%3D%22en-US%22%3ERe%3A%20Access%20stock%20taking%20system%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2078741%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126074%22%20target%3D%22_blank%22%3E%40George%20Hepworth%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20think%20I%20explained%20it%20right.%20What%20i%20am%20looking%20for%20is%20to%20do%20a%20physical%20stock%20count%20and%20compare%20the%20counts%20to%20each%20other.%20My%20thoughts%20would%20be%20the%20following.%20If%20i%20create%20a%20table%20as%20below%20.%3C%2FP%3E%3CTABLE%20width%3D%22474%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%22141%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2277%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD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C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2017.28%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhere%20ProdID%2C%20Prod%20Price%20and%20ProdSize1%20is%20from%20TblProdList%20and%20StockQty%20is%20a%20value%20that%20i%20can%20manually%20input%20from%20a%20form.%20the%20StockQty%20would%20be%26nbsp%3B%20a%20calculated%20field.%20So%20I%20physically%20count%20my%20stock%20and%20input%20the%20value.%20I%20can%20then%20calculate%20a%20stock%20Value.%20What%20I%20need%20to%20be%20able%20to%20do%20is%20compare%20my%20opening%20stock%20on%20ProdID%3D%201%20in%20one%20stock%20take%20to%20ProdID1%20in%20the%20second%20stock%20take(%20month%20of%20week%26nbsp%3B%20later)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBecause%20I%20have%20create%20da%20new%20table%20%2C%20the%20value%20will%20not%20be%20changed%20when%20updating%20prices%20from%20my%20purchases.%3C%2FP%3E%3CTABLE%20width%3D%22666%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%22141%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2277%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3EStockTakeID1%3C%2FTD%3E%3CTD%3EStocktakeID2%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EProdID%3C%2FTD%3E%3CTD%3EProdName%3C%2FTD%3E%3CTD%3EStockQty%3C%2FTD%3E%3CTD%3EProdSize%201%3C%2FTD%3E%3CTD%3E%26nbsp%3BProdPrice%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3BProdValue%26nbsp%3B%3C%2FTD%3E%3CTD%3EStockQty%3C%2FTD%3E%3CTD%3E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FTR%3E%3CTR%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3EOnce%26nbsp%3B%20I%20have%20the%20second%20stock%20take%20completed%2C%20I%26nbsp%3B%20can%20calculate%20my%20usage%20so%20where%20ProdID%20%3D6%20Usage%20%3D%205.4%20-%204%26nbsp%3B%20%2B%20Purchases%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIvan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2078942%22%20slang%3D%22en-US%22%3ERe%3A%20Access%20stock%20taking%20system%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2078942%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F926509%22%20target%3D%22_blank%22%3E%40Ivan__Torr%3C%2FA%3E%26nbsp%3BI%20see.%3C%2FP%3E%3CP%3EThis%20is%20in%20addition%20to%20the%20recipe%20section%20and%20not%20shown%20in%20your%20current%20relationships%3F%3C%2FP%3E%3CP%3EI%20suggest%20you%20look%20at%20some%20examples%20of%20traditional%20inventory%20methods%2C%20such%20as%20the%20one%20in%20the%20Northwind%20Template%20in%20Access.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22northwindtemplateaccess.png%22%20style%3D%22width%3A%20346px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247771iC1D9B3BCDE10A3D1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22northwindtemplateaccess.png%22%20alt%3D%22northwindtemplateaccess.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBasically%2C%20inventory%20control%20depends%20on%20tracking%3A%26nbsp%3B%3C%2FP%3E%3CP%3Ea)%20items%20received%3C%2FP%3E%3CP%3Eb)%20items%20sent%20out%20or%20consumed%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%2C%20for%20the%20purposes%20of%20Stock%20Take%20tasks%2C%20you%20also%20need%20to%20account%20for%20shrinkage.%20In%20my%20opinion%2C%20Shrinkage%20is%20just%20one%20form%20of%20items%20out%2C%20though.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20way%20it%20should%20work%2C%20therefore%2C%20is%20that%20you%20have%20a%20table%20that%20tracks%20items%20received%20into%20your%20inventory%20by%20item%2C%20by%20quantity%20and%20by%20date.%20I%20don't%20see%20a%20value%20to%20storing%20product%20value%2C%20although%20I%20suppose%20you%20could%20include%20Product%20Price%20as%20of%20the%20date%20of%20receipt.%20We%20discourage%20storing%20calculated%20values%20in%20tables.%20Any%20calculation%20needed%20can%20be%20done%20in%20a%20query%20at%20the%20time%20it%20is%20needed.%3C%2FP%3E%3CP%3EEach%20time%20you%20receive%20a%20shipment%20of%20produce%2C%20therefore%2C%20someone%20enters%20each%20of%20the%20items%20received%20into%20this%20table.%3C%2FP%3E%3CP%3EThe%20trick%20here%20is%20that%20you%20are%20consuming%20these%20items%20internally%2C%20not%20sending%20them%20back%20out%20as%20would%20be%20the%20case%20in%20a%20typical%20retail%20or%20wholesale%20operation.%20To%20get%20items%20out%2C%20you%20must%20refer%20to%20your%20other%20tables%2C%20as%20previously%20discussed%2C%20where%20you%20are%20tracking%20what%20items%20are%20used%20in%20what%20recipes%20and%20how%20many%20of%20those%20recipes%20are%20used%20in%20plates.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAgain%2C%20the%20sum%20of%20items%20in%20from%20the%20inventory%20table%20minus%20the%20sum%20of%20items%20used%20in%20plates%20is%20your%20current%20stock.%20Because%20the%20inventory%20has%20a%20%22DateReceived%22%20field%20and%20your%20plates%20tables%20should%20have%20a%20%22Date%22%20table%20as%20well%2C%20you%20can%20limit%20the%20inventory%20to%20specific%20time%20periods.%20And%2C%20after%20a%20stock%20take%2C%20you%20can%20add%20a%20NEGATIVE%20amount%20to%20the%20Inventory%20table%20to%20account%20for%20any%20shrinkage%20you%20find.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have created a stock system with all relevant tables .My system can purchase products from relevant suppliers via email. 

I am trying to create a system from this that can do a stock count ( ie Physical  on hand)

I cant work out how I can get the system to remember the count as a history with the then purchase price. I have tried a make table but cant get any further than that

 

Any help appreciated

 

Ivan

14 Replies

@Ivan__Torr 

While you've done a good job of introducing the CONCEPT, there isn't really enough detail in that description to offer any suggestions. "...all relevant tables..." could mean a number of different things to different people, for example. And none of them would be able to do much with that anyway because we wouldn't know if OUR assumptions matched the reality.

 

Let's start with a relationship diagram. That'll get us started being able to ask you useful questions about the system and maybe lead to some suggestions.

 

Thanks. 

@George Hepworth 

See attached. Sorry new to Access. Its amazing what Covid get a person up too.

It is a Recipe and Dish coster . It also does allergens and Calorie counts on each dish.

 

hope this helps

@Ivan__Torr 

Thanks. I see a number of things to comment on, many of which have little to do with the current Inventory question. Let's get those out of the way. 

  • Multi-Value Field for PlatePic in TblPlating. As a matter of principle, most experienced Access developers refuse to use these things. I would recommend, therefore, that there be a separate table for the pictures and that the image files themselves be stored externally, not inside the accdb.
  • Indeterminate relationships between tblSizes and TblRecipes and TblFoodProducts and tblProdList. These should be designated as one-to-many and they should have Referential Integrity Enforced.
  • Several tables (TblOrders, TblSupp, and TblOrderPurch, as well as TblAllergens) which have no relationships identified. These need to be designated and have Referential Integrity Enforced on them. Otherwise it is all too easy to have "orphan" records added to tables.

Okay, a couple of other things could bear attention, but overall it otherwise seems fine.

 

It looks like TblOrderPurch is where incoming product quantities are stored. It's not clear to me, though, what the difference is between ProdQty and PurchAmount. ProdQty appears to be the value that determines how much you have received of each product, though. That means your Stock Take will be based on a query that Sums ProdQty by ProdID:

SELECT ProdID, Sum(ProdQty) As ProductQuantityPurchased

FROM tblOrderPurch

 

You can include additional tables to bring in things like ProdName from the TblProdList, or to bring in Dates from the TblOrders table to group purchases by time period (i.e. Group By OrderDate).

 

To get product quantity going out, it looks to be like "Plate" is the central concept, i.e. products are use in different recipes which are combined into "Plates". But I can't tell for sure how you want to calculate that and which "xxxQty" field(s) to use.

 

If I had to venture a guess, I would say that you'd need to include tblRecProducts to get the quantity per recipe, and join that to either TblRecipes or tblPlateRec, or both, to get to the RecQty and then join that to TblPlating to get to the ProdQtyPPlate in tblPlateProducts.  Once you get there you should have the quantity of each product used in the total number of plates sold. 

 

With that, you should be able to finally join the two queries on ProdID to get the quantity in and the quantity out for a final value of remaining quantity in stock.

 

I hope that helps your thinking.

@George Hepworth 

 

I don't think I explained it right. What i am looking for is to do a physical stock count and compare the counts to each other. My thoughts would be the following. If i create a table as below .

      
      
ProdIDProdNameStockQtyProdSize 1 ProdPrice  ProdValue 
1cabbage2kg €      1.20 €          2.40
2carrots32.5kg €      2.20 €          6.60
3potatos55kg €      6.00 €       30.00
4peas2.52.5kg €      1.00 €          2.50
5turnip2.1kg €      1.25 €          2.63
6cream5.4litre €      3.20 €       17.28
      
     

 

 

 

 

Where ProdID, Prod Price and ProdSize1 is from TblProdList and StockQty is a value that i can manually input from a form. the StockQty would be  a calculated field. So I physically count my stock and input the value. I can then calculate a stock Value. What I need to be able to do is compare my opening stock on ProdID= 1 in one stock take to ProdID1 in the second stock take( month of week  later)

 

Because I have create da new table , the value will not be changed when updating prices from my purchases.

         
   StockTakeID1StocktakeID2
         
ProdIDProdNameStockQtyProdSize 1 ProdPrice  ProdValue StockQtyProdPriceProdValue
1cabbage2kg €      1.20 €          2.406 €      1.20 €      7.20
2carrots32.5kg €      2.20 €          6.60  €      2.30 €          -  
3potatos55kg €      6.00 €       30.005 €      5.80 €   29.00
4peas2.52.5kg €      1.00 €          2.508 €      1.00 €      8.00
5turnip2.1kg €      1.25 €          2.63  €      1.23 €          -  
6cream5.4litre €      3.20 €       17.284 €      3.20 €   12.80
         

Once  I have the second stock take completed, I  can calculate my usage so where ProdID =6 Usage = 5.4 - 4  + Purchases

 

Thanks

 

 

Ivan

@Ivan__Torr I see.

This is in addition to the recipe section and not shown in your current relationships?

I suggest you look at some examples of traditional inventory methods, such as the one in the Northwind Template in Access.

northwindtemplateaccess.png

Basically, inventory control depends on tracking: 

a) items received

b) items sent out or consumed  

And, for the purposes of Stock Take tasks, you also need to account for shrinkage. In my opinion, Shrinkage is just one form of items out, though.

 

The way it should work, therefore, is that you have a table that tracks items received into your inventory by item, by quantity and by date. I don't see a value to storing product value, although I suppose you could include Product Price as of the date of receipt. We discourage storing calculated values in tables. Any calculation needed can be done in a query at the time it is needed.

Each time you receive a shipment of produce, therefore, someone enters each of the items received into this table.

The trick here is that you are consuming these items internally, not sending them back out as would be the case in a typical retail or wholesale operation. To get items out, you must refer to your other tables, as previously discussed, where you are tracking what items are used in what recipes and how many of those recipes are used in plates.


Again, the sum of items in from the inventory table minus the sum of items used in plates is your current stock. Because the inventory has a "DateReceived" field and your plates tables should have a "Date" table as well, you can limit the inventory to specific time periods. And, after a stock take, you can add a NEGATIVE amount to the Inventory table to account for any shrinkage you find.

Spoiler
 

@George Hepworth 

George

Thanks For that but still stuck on one thing. I have attached screen shots of My relationships and a form in design and form view.

I need to get the fields filled in on TBlStockProd [StcokQty] and [StockTakeID] as i have done many times in this database.

The problem I feel i have is that i need "a union Query" between the three tables. 

I understand why, but as soon as I link  the child and master fields I loose  the left join to the ProdID.

Is there a way around this

 

regards

 

Ivan

 

 

@Ivan__Torr 

 

If I can get the tables in question with enough sample data to see what's going on, it will be a lot quicker than trying to visualize from screenshots. If possible that will expedite things.

I think a UNION won't be needed, but, frankly I'm not that great with abstractions....

@George Hepworth 

George. I have attached a zip folder that i am using for testing. There is a lot of data in TblProdList that is needed for another part of the database.

 

@Ivan__Torr 

We'll take a look at it and maybe come back with additional questions. 

Thanks.

@Ivan__Torr We need the tables that record where products are removed as well. Those tables, as noted before, will be the tables used to record how many plates were served, and how much of each product is in each plate. Stock Take is not a separate table. You need a table of ProductInventory, which I think is called StockProd here. I'll set something something up to show you that, but without a way to get to the Product quantities actually used in day-to-day operations, we can't get a balance of remaining product.

 

@George Hepworth Also, I see that some of the fields are those awful, counter-productive Lookup type fields. Combo boxes with Value lists. Unfortunately, Microsoft saw fit to foist them on unsuspecting new developers. 

@George Hepworth 

 

If you cab send me your email address, I will send it. i am making the system for resale so dont feel comfortable sending over an open forum

 

Regards

 

Ivan

@Ivan__Torr 

Here's my suggested approach to counting inventory, or Stock, based on my understanding of how this process should work.

You record each product in the table, as I modified it. In any relational database application, the basic design principle is that each data point is stored one time in one place. I think, and this could be wrong, that you can actually buy products from one OR MORE suppliers. Brie Cheese, for example, could come from a local dairy or from a big producer. That means you can't record supplier in the Product table. It has to be stored as part of the transaction that receives Brie, say 50 pounds from the local supplier and 150 from the national producer. The same is true of other changes I made to what I consider the appropriate design.


I started out with a basic inventory as your initial stock take, some of the items are a bit arbitrary and intended to be examples. I added two additional, smaller intake events, or receipts of small quantities of products to illustrate how that needs to work, and one Stock Take event to account for shrinkage.


Actual products OUT will not be tracked in these tables, as I've stated previously. Your usage will be tracked in those tables where you consume products during the process of making up and selling plates. I.e. of the 50 pounds of Brie, for example, you might sell a cheese and cracker platter that requires 16 ounces, or one pound of Brie. When you calculate the total IN (150 +50) and subtract from that the 1 pound per platter sold (Say, for example 25 platters, or 25 * 1), you get a net of 175 pounds still in stock. We refrain from storing those calculated values anywhere; we store only the quantities received in total, and the quantities consumed in total, and calculate the net when we run a report.

 

@Ivan__Torr  I must have missed this post in making my last reply.

I can accept your accdb for review, but based on the part I've seen, an EXTENSIVE refactoring is in order.

Since our conversation is limited to Stock Take, or more generally, inventory, I can only comment on that aspect. But, before you think about selling this as a commercial application, a good deal of work is needed. Sorry, that does sound harsh, but the fact is that properly normalized table design is crucial to a successful relational database application.