The following function gives me the following error:
System.ArgumentNullException: 'El valor no puede ser nulo.
Nombre del parámetro: dataTable'
I executed the Query, directly in SQL and I had an answer. So I do not understand why it does not bring the data I need.
Private Sub txt_ppu_TextChanged(sender As Object, e As EventArgs) Handles txt_ppu.TextChanged
Dim cont_ As Integer = 0
If Len(txt_ppu.Text) > 2 Then
query_ = "SELECT Placa FROM Seremitt WHERE Placa LIKE '" + txt_ppu.Text + "%'"
Dim dr As New SqlDataAdapter(query_, IConexion)
dr.Fill(dt)
MsgBox(dt.Rows.Count)
End If
End Sub