vb access
如何实现在输入订单的时候,实现产品库存的自动更新?
产品信息表中有“库存”字段,订单中有“订货数量”字段。
大家帮帮忙,谢谢了。
如何实现在输入订单的时候,实现产品库存的自动更新?
产品信息表中有“库存”字段,订单中有“订货数量”字段。
大家帮帮忙,谢谢了。
解决方案 »
- ==想兼职的兄弟看过来==
- 各位老师,这个功能如何实现:如果对文本框等控件进行过修改,关闭窗体是会提示是否保存?[关键是如何判断出用户进行过修改却没有保存?]
- 为什么print "56"+11的结果是67?
- 在线等待:高分请教,关于SQL语句模糊查询问题。
- 再次求救! DataGrid控孔数据源不支持Microsoft Jet.OLEDB.4.0数据引擎问题
- DataGrid控件可否可以和DATA控件或DAO连接。
- 请教 窗口截图的问题。
- SOS!!!!救命!!!!!!!!!!!!
- 关于vb的dateadd()函数问题,请帮忙!
- 我学VB有很长时间了,算是一个入门的程序员了,我想再提高,可是不知道再学些什么了?怎么办?
- 【急等】Excel VBA 调用oracle带参数的存储过程时提示“运行时错误 -2147467259 (80004005)自动化错误”
- 急救
Public Function UpdatePSTicketTables(ByVal strArinvtID As String, ByVal strPsTicketDtlID As String, ByVal strModuleSN As String)
Dim strTicketRelID As String
'add record to pick ticket release table
Dim InstSql As String
Dim InstCommand As New ADODB.command
strTicketRelID = GetPsTicketRelID()
'update master label table for this Serial/Inventory item.
InstSql = "update iqms.master_label " + _
"set orderno='" + Trim(lblSalesOrderNumber.Caption) + "'," + _
"pono='" + Trim(lblCustomerPONumber.Caption) + "'," + _
"ps_ticket_rel_id=" + strTicketRelID + "," + _
"ps_ticket_dtl_id=" + Trim(lblPSDtlTicketID.Caption) + _
"where serial='" + Trim(strModuleSN) + "' and arinvt_id=" + Trim(strArinvtID) InstCommand.ActiveConnection = Conn
InstCommand.CommandType = adCmdText
InstCommand.CommandText = InstSql
InstCommand.Execute
End Function