Good evening
I am trying to create an application in visual basic 2005 with sql server.
I use a barcode reader to read the data.
when I run a search query it for the barcode no result displayed.
here is my request.
Dim cmd As New SqlCommand ("select * from t_produit WHERE [code_barre] = '" & cb.Text & "'", con)
On Error Resume Next
dr = cmd.ExecuteReader
If dr.Read = True Then
refprod.Text = dr (0)
pu.Text = dr (5)
qstock.Text = dr (8)
qt.Text = 1
des.Text = dr (3)
End If
Here is an example of a barcode search: àà)àé(''H
I am trying to create an application in visual basic 2005 with sql server.
I use a barcode reader to read the data.
when I run a search query it for the barcode no result displayed.
here is my request.
Dim cmd As New SqlCommand ("select * from t_produit WHERE [code_barre] = '" & cb.Text & "'", con)
On Error Resume Next
dr = cmd.ExecuteReader
If dr.Read = True Then
refprod.Text = dr (0)
pu.Text = dr (5)
qstock.Text = dr (8)
qt.Text = 1
des.Text = dr (3)
End If
Here is an example of a barcode search: àà)àé(''H