我的股票是在msgbox的内部,但并没有刷新他的显示旧股票 [英] My stock is insiding the msgbox, but is not refreshing his show old stock
问题描述
我有一个库存表和一个窗口表单购买项目只是购买项目显示msgbox显示库存和更新库存表然后第二次购买项目和msgbox不刷新旧库存显示这是问题
我的尝试:
Dim qt_str As String
如果con.State = ConnectionState.Closed那么
con.Open()
结束如果
qtds.Clear()
qt_str =从part_stock中选择数量,其中part_name ='& partBox2.Text& '
qtAdapter =新OleDbDataAdapter(qt_str,con)
qtAdapter.Fill(qtds,qty)
MsgBox(可用stock& qtds.Tables(0).Rows(0).Item(qty))
con.Close()
i have a stock table and a window form to purchase item just purchase item to show msgbox show stock and update stock table then second time purchase item and msgbox not refresh old stock is show this is problem
What I have tried:
Dim qt_str As String
If con.State = ConnectionState.Closed Then
con.Open()
End If
qtds.Clear()
qt_str = "select qty from part_stock where part_name='" & partBox2.Text & "'"
qtAdapter = New OleDbDataAdapter(qt_str, con)
qtAdapter.Fill(qtds, "qty")
MsgBox("Available stock " & qtds.Tables(0).Rows(0).Item("qty"))
con.Close()
推荐答案
您没有任何更新代码。
也许您的Kinect需要插入。
You don't have any "update" code.
And maybe your "Kinect" needs to be plugged in.
这篇关于我的股票是在msgbox的内部,但并没有刷新他的显示旧股票的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!