Hey everyone, I am wanting to add ToteT to the "Organizing Inventory" DB. The items in ItemT can be in a tote on a shelf or on a shelf by itself. I am trying to setup the relationships between the SubdivisionT, ToteT (the new table) and ItemT. At some point I want to be able to move items from the shelf to the tote and vice versa. What is the best way to achieve this?
BJ, I'd make the shelf and the tote two records in SubdivisionT and keep one SubdivisionID in ItemT. For example, make one subdivision called Shelf 4 and another called Blue Tote. If the item is sitting loose on the shelf, pick Shelf 4. If you put it in the tote, change that same SubdivisionID to Blue Tote. You don't need a separate ToteID on the item. Set up and verify the new subdivision assignments before removing any fields you've already added.
You can put 'On Shelf 4' in a notes field on the Blue Tote record, or include it in the display name if you want to see it in the list. That's just a label, so Access won't update it automatically. If you move the entire tote, change that note or name once. The items still point to Blue Tote. If you later want queries to know which totes are on each shelf, that's when I'd consider a parent subdivision relationship rather than relying on the note.
One other thing to keep in mind: pick one subdivision structure and stick with it. Otherwise, you can end up with a shelf, then a tote, then shoe boxes in the tote, then little card boxes inside the shoe boxes, and before long you've got an endless nested list of tables.
You can make the hierarchy as deep as you want, but every item will then need all of those location levels specified, which may or may not make sense for your situation.
This is one case where a self-join relationship, like a genealogy table, could work nicely. Then a container can be inside another container, which can be inside another container, without needing separate tables for ToteT, BoxT, etc. Build it however works best for how you actually organize things.
Bj SchroederOP
@Reply 9 days ago
Thanks Richard! This gives me more avenues to play around with.
You're welcome. In my storage unit, I number the shelves and use boxes on those shelves. For something too big to fit in a box, like a baseball bat, I just create another "box" record called "On Shelf." That tells me the item is sitting loose on the shelf, not inside an actual box.
You've just got to get creative with it. There's no wrong way - whatever works best for how you organize your stuff.
Bj SchroederOP
@Reply 2 days ago
Richard Well I'm not very creative and not too organized. I'm always looking for a reason to build a Db and if it helps me get more organized then that's a plus.
p.s. Hope you had a good Thanksgiving.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.