Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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()
Posted
Updated 27-Jul-18 12:17pm

1 solution

You don't have any "update" code.

And maybe your "Kinect" needs to be plugged in.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900