Wayne Jordan
Registered User.
- Local time
- Today, 15:16
- Joined
- Feb 14, 2013
- Messages
- 14
My db tracks consumable supplies for our warehouse. I have seen the light and now calculate qty on hand instead of storing that value in a table. I do the same with outstanding quantities on order. I also have a query that tells me when it is time to order. Or did. For each item I had the following fields: QOH (qty on hand), QOO (qty on order) and ROP (reorder point.) The query would select items to order where QOH + QOO < ROP. That was easy because those values came from fields in a table.
Now the values come from queries. QOH is no problem but QOO is causing problems because the query will only select items that have outstanding orders. In other words, if there is no QOO the query does not select that item. I can enter a fake record in the Order Details table to make it look like I have 1 of each item on order and that works but I know there has to be a better way. If I forget to add this fake record when we add a new sku then that item will not be included in the query.
I hope I have not made this too confusing.
Thanks in advance for any help anyone can give me.
Now the values come from queries. QOH is no problem but QOO is causing problems because the query will only select items that have outstanding orders. In other words, if there is no QOO the query does not select that item. I can enter a fake record in the Order Details table to make it look like I have 1 of each item on order and that works but I know there has to be a better way. If I forget to add this fake record when we add a new sku then that item will not be included in the query.
I hope I have not made this too confusing.
Thanks in advance for any help anyone can give me.