Lourens7707
New member
- Local time
- Today, 11:15
- Joined
- Jun 9, 2020
- Messages
- 5
Hi, how can I add completed production items to a production pool , and then draw from that pool by hand of a customer order
That is in accessHi, how can I add completed production items to a production pool , and then draw from that pool by hand of a customer order
Hi Thank you for the reply, I have created a stock code , what the trick is to add an deduct stock amounts by ordersFrom your low number of posts, it is not clear how much you know about database setup. However, I'm going to assume that you are in the very first stages of trying to do this. Access, unfortunately, is not a trivial tool to learn quickly because it is incredibly powerful. I'm going to give you some advice that I believe to be appropriate for the stage of development that I believe applies to you.
Old programmer's rule #1: If you can't do it on paper then you can't do it in Access.
Expanded, that means that you need to have a document of some kind that lists what you are trying to do via a paper "flow diagram." In making that document, you will identify your data sources and destinations. You will identify your process steps. You will have to think about how to perform some of these steps that you will identify. But that is the nature of the beast - that you need to decide what you want to do before you try to get Access to do it for you. That is because Access, not being psychic, can't read your mind and make things happen. If you have not done so before this time, I think you should learn a little something about normalization. In this forum, you can search for normalization. If you search the worldwide web, you must search for "database normalization" because there are other kinds of normalization. If you do a web search, initially stick with .EDU domain sites because most of the .COM sites have something to sell you.
It is in this stage that you identify tables that are the work-horse data storage entities within Access. Which means that your production pool is a candidate for being represented in a table. However, there are implications of this, since you have specified "completed" items. You may have either another table or a new field in the production items to indicate whether it is completed. As to how you select that, it is usually done via some type of form. Being "selected" might mean yet another flag OR a more complex status flag that can have states of "in work" "completed" "selected" etc. Up to you as to you would approach it because we don't know too much about your business setup.
Old programmer's rule #2: Access won't tell you anything you didn't explain to it first.
Expanded, that is a reminder that YOU are the subject matter expert. Access is top-notch at rapid development of forms and reports and queries and tables, and is a decent programming interface for the occasional code module that crops up as a necessity. Access knows about how to do those things - but it has NO CLUE as to WHY you want anything. That is something YOU know and thus something that you need to articulate (probably in step 1 as part of your documentation). More to the point, if you decide in step 1 (making that document) that you want an output of X then in step 2 you have to assure that you have a source or a formula for X. If you want XYZ then you need a source of XYZ; or you need sources of X, Y, and Z and the formula that combines them to XYZ. If this sometimes means working backwards through your code, then so be it.
I used to tell my business partners: If we can define it, we can design it.Old programmer's rule #1: If you can't do it on paper then you can't do it in Access.
what the trick is to add an deduct stock amounts by orders