Hi all,
Am a relative newbie to Access, although have worked with it over the last decade in various capacities. I have a database to manage hook (as in fly fishing hook) inventory. And I'm trying to build a Query that shows me the current inventory amount of one or more or all hooks that I own.
To define more: a hook has a manufacturer and a reference number - with those you can look up the design features and other shape factors. I have created one table called Hooks-Types that picks the Manufacturer (from another table) and specifies the shape characteristics for each hook. Each hook *type* is then the primary ID of that table.
A hook then has a size - and comes in multiple sizes. So in order to create an inventory structure, I created a table called Hooks-Inventory where the records are individual inventory transactions, specifying the hook (via ID), the size, and the transaction type. By transaction type, I have Opening Bal, Addition, Usage and Adjustment. My idea was to have a table where I could record the purchase of particular hooks in a particular size, the usage of those hooks (as flies are tied) etc.
So, to the problem: I need to build a query that has as input parameters the hook type and the size, and then shows me the set of transactions (from the Hook-Inventory table) that apply to those parameters, and gives me a total current inventory count at the end.
I'm not sure I've designed this the right way, so am very willing to redesign to suit an alternative approach - or if it is okay, then to understand how I could build the above query would be fantastic.
Many thanks indeed,
JW