I am designing an inventory system and am stuck on a potential problem.
I have a table of Stock_Catalog containing the following fields: Stock_ID (random autonumber), Full_Desc, Serial, Auto, Mem, RC, Trans_Type. These are the basic item descriptions.
I then have 5 other fields: Add (yes/no), MRR (yes/no), Qty, Unit_Price, Item_Note that come into play when the user chooses which stock item is going to be part of the transaction. User changes Add to yes, fills in the remaining 4 boxes appropriately and then hits the update macro button.
All the selected Yes are then appended to the Transaction_Lin es table and through other macro'ed queries, the last 5 fields of Stock_Catalog are then reset to null or no.
I then have a query named qryInventory that calculates how many of what items I have on-hand based on all the Transaction_Lin es.Qty summary. Here is where my problems arises.
I wish to be able to enable a checkbox solution as above involving only on-hand inventory in order to rapidly add the selected products to Transaction_Lin es; however I cannot get qryInventory to update a table that would contain the Add...etc fields as my Stock_Catalog table does currently. I understand you shouldn't put calculated data in a table anyhow so that's not optimal.
So, I'm wondering if it's possible on a created filter form of qryInventory to add the necessary unbound text boxes and then for each line if Unbound CheckBox = yes...append the Full_Desc, and user-supplied unbound "Qty", "Unit_Price " to my Transaction_Lin es table?
Is this feasible or not? Even if feasible, is there a better method to go through being able to allow the user to select which lines they wish to append to a table so as to be quickest and easiest?
Edit: The entire reason I wish to add this 2nd line of functionality is so the user is not selling items that aren't in stock.
I have a table of Stock_Catalog containing the following fields: Stock_ID (random autonumber), Full_Desc, Serial, Auto, Mem, RC, Trans_Type. These are the basic item descriptions.
I then have 5 other fields: Add (yes/no), MRR (yes/no), Qty, Unit_Price, Item_Note that come into play when the user chooses which stock item is going to be part of the transaction. User changes Add to yes, fills in the remaining 4 boxes appropriately and then hits the update macro button.
All the selected Yes are then appended to the Transaction_Lin es table and through other macro'ed queries, the last 5 fields of Stock_Catalog are then reset to null or no.
I then have a query named qryInventory that calculates how many of what items I have on-hand based on all the Transaction_Lin es.Qty summary. Here is where my problems arises.
I wish to be able to enable a checkbox solution as above involving only on-hand inventory in order to rapidly add the selected products to Transaction_Lin es; however I cannot get qryInventory to update a table that would contain the Add...etc fields as my Stock_Catalog table does currently. I understand you shouldn't put calculated data in a table anyhow so that's not optimal.
So, I'm wondering if it's possible on a created filter form of qryInventory to add the necessary unbound text boxes and then for each line if Unbound CheckBox = yes...append the Full_Desc, and user-supplied unbound "Qty", "Unit_Price " to my Transaction_Lin es table?
Is this feasible or not? Even if feasible, is there a better method to go through being able to allow the user to select which lines they wish to append to a table so as to be quickest and easiest?
Edit: The entire reason I wish to add this 2nd line of functionality is so the user is not selling items that aren't in stock.
Comment