Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Insert update 如何在输入采购时自动更新库存&;出售_Insert Update_Stock_Auto Update - Fatal编程技术网

Insert update 如何在输入采购时自动更新库存&;出售

Insert update 如何在输入采购时自动更新库存&;出售,insert-update,stock,auto-update,Insert Update,Stock,Auto Update,嗯,我使用Access作为包含五个表的DB,即供应商、采购订单、客户、销售订单、库存。 Vendors: VendorID(PK), Name, Contact, Phone, Address. PurOrder: POID(PK), Items, Quantity, Rate, Total Customers: CustID(PK), Name, Phone, Address SalesOrder: SOID(PK), Items, Quantity, Rate, Total Stoc

嗯,我使用
Access
作为包含五个表的DB,即<代码>供应商、采购订单、客户、销售订单、库存。

Vendors: VendorID(PK), Name, Contact, Phone, Address.

PurOrder: POID(PK), Items, Quantity, Rate, Total

Customers: CustID(PK), Name, Phone, Address

SalesOrder: SOID(PK), Items, Quantity, Rate, Total

Stock: SItemID(PK), Items, Quantity, Rate, Total
我正在使用VB.NET Express中的数据库向导。我不需要为此编写代码。 我单击数据源>添加数据库>将其拖到我的采购和销售表单,并自动创建添加、删除和保存以及导航按钮作为toolstrip。此外,我还以Datagrid模式将采购订单表(例如)拖到表单中,就这样!现在,我可以将记录保存、删除和添加到数据库中作为购买

我能够输入和保存/更新采购和销售凭证,检索客户/供应商ID的报告并打印出来

我唯一的问题是,我不知道该怎么做,以便在购买或销售时自动更新袜子数量

提前谢谢