Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Sum db of a table to a new table and datacombo problem

$
0
0
Hi,

Here's the situation I am in right now (actually, its been 2 weeks) in creating my inventory system. I have 2 forms, one is assigned for my Item_List(frm_ItemList) then the other one is assigned for the ordered_item (frm_OrderedItem) with 1 database named as inventory.mdb. In my Item_List form, I assigned the following fields: Item_Number(textbox), Item_Code(textbox), Item_Name(textbox), Item_Type (combobox), Supplier_Name(combobox), Supllier_Code(combobox), Item_In(textbox), Item_Out(textbox), Item_Remaining(textbox), Supplier_Price(textbox), Item_SRP(textbox), Date_Created (label), Time_Created (label). Said fields are assigned to my table named as add_item in inventory.mdb. For my second form, I have assignd the following fields, Item_Code(datacombo), Item_Name(datacombo), Item_Type (datacombo), Supplier_Name(datacombo), Supllier_Code(datacombo), Order_Qty(textbox), Date_Ordered (label), Time_Ordered (label). Said fields are assigned to my table named as ordered_item in inventory.mdb.


1. For the frm_OrderedItem, if I select an item name in the Item_Name datacombo, the other datacombo fields should reflect the data of records of the item selected. The same goes with Item_Code datacombo. Is there a way to achieve this?
2. How can I sum the value of Order_Qty WHERE Item_Name = "Soap" then the total should be reflected in the field of Item_List.Item_In (connected to add_Item table). The item name soap is selected from the datacombo Item_Name.

I will post the code and attached the database I created once I got home.

Please help... Thanks a lot.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>