Textbox select
Publicado por Ivan (10 intervenciones) el 19/06/2009 03:13:23
Que tal tengo el siguiente codigo y mi pregunta es si puedo meter en un text box el noControl y el estado separado por una coma o un espacio si si me gustaria saber como gracias.}
Using Con
com.CommandText = "SELECT NoControl, Estado FROM tblUsuarios WHERE (NoControl = 85000655)"
com.Connection = Con
dr = com.ExecuteReader()
If dr.HasRows Then
While dr.Read
TextBox1.Text = dr.GetValue(0)
End While
End If
End Using
Using Con
com.CommandText = "SELECT NoControl, Estado FROM tblUsuarios WHERE (NoControl = 85000655)"
com.Connection = Con
dr = com.ExecuteReader()
If dr.HasRows Then
While dr.Read
TextBox1.Text = dr.GetValue(0)
End While
End If
End Using
Valora esta pregunta


0