Ver Mensaje Individual
  #7 (permalink)  
Antiguo 29/07/2011, 17:36
Avatar de rikakashi
rikakashi
 
Fecha de Ingreso: julio-2011
Mensajes: 226
Antigüedad: 12 años, 10 meses
Puntos: 33
Respuesta: ¿Como Llenar Textbox al Seleccionar un Dato de un Combobox?

yo por ejemplo hago esto

Código vb:
Ver original
  1. Dim da As New SqlDataAdapter("select * from TBL_MEM_CLIENTES where CL_MEMBRESIA=" & Trim(Me.txt_membresia.Text), conexion_BD)
  2.             da.Fill(ds)
  3.  txt_1_nom.Text = ds.Tables(0).Rows(0).Item("CL_1_NOM").ToString
  4.             txt_2_nom.Text = ds.Tables(0).Rows(0).Item("CL_2_NOM").ToString
  5.             txt_1_ap.Text = ds.Tables(0).Rows(0).Item("CL_1_AP").ToString
  6.             txt_2_ap.Text = ds.Tables(0).Rows(0).Item("CL_2_AP").ToString
  7.             txt_rfc.Text = ds.Tables(0).Rows(0).Item("CL_RFC").ToString
  8.             txt_calle.Text = ds.Tables(0).Rows(0).Item("CL_CALLE").ToString