Posts by David Sanculane • 1 point
5 posts
-
0
votes1
answer62
viewsQ: Replica in datagridview (Vb.net and ms-access database)
When I am making a new sale (in the case of this software I am developing), every time I add new items in the datagridview it appears together with items (or sales) previously added. I would like to…
-
0
votes2
answers41
viewsA: I can’t get the stock down
It worked using the code below: con = New OleDbConnection(cs) con.Open() Dim cb As String = "update Dish set Quantity = Quantity - '" & Val(DataGridView2.CurrentRow.Cells(2).Value) & "'…
-
0
votes1
answer39
viewsA: Textbox Search multiplies search values
I was able to solve the problem by modifying my code to: Private Sub txtSearchByDish_TextChanged(sender As Object, e As EventArgs) Handles txtSearchByDish.TextChanged Dim totalAmount As Double Dim…
-
0
votes1
answer39
viewsQ: Textbox Search multiplies search values
Private Sub txtSearchByDish_TextChanged(sender As Object, e As EventArgs) Handles txtSearchByDish.TextChanged Try con = New OleDbConnection(cs) con.Open() cmd = New…
-
-1
votes2
answers41
viewsQ: I can’t get the stock down
I am trying to decrease the amount of stock at the time of sale and without success, I used the code below, no error appears.. Public Sub UpdateDecreaseQuantity() Try For Each row As DataGridViewRow…