Foros del Web » Programación para mayores de 30 ;) » Programación General » Visual Basic clásico »

datalist

Estas en el tema de datalist en el foro de Visual Basic clásico en Foros del Web. tengo un datalist donde estoy mostrando los cleintes que tengo en la tabla clientes como puedo hacer para cuando pinche sobre un cliente que aparece ...
  #1 (permalink)  
Antiguo 11/10/2005, 14:38
 
Fecha de Ingreso: septiembre-2005
Mensajes: 13
Antigüedad: 18 años, 7 meses
Puntos: 0
datalist

tengo un datalist donde estoy mostrando los cleintes que tengo en la tabla clientes como puedo hacer para cuando pinche sobre un cliente que aparece en el datalist me rellene los campos en el formulario con los datos corespondientes a ese cliente EN POCAS PALABRAS ME TRAIGA LOS DATOS QUE INGRESE DE ESE CLIENTE DESDE LA BASE DE DATOS para poder modificarlo y guardarlo ya modificado, o poder eliminarlo.


MUCHAS GRACIAS
  #2 (permalink)  
Antiguo 11/10/2005, 14:47
Avatar de GeoAvila
Colaborador
 
Fecha de Ingreso: diciembre-2003
Ubicación: Antigua Guatemala
Mensajes: 4.032
Antigüedad: 20 años, 4 meses
Puntos: 53
en las faq's hay un ejemplo.. exactamente de lo que queres hacer..

nos vemos.
__________________
* Antes de preguntar lee las FAQ, y por favor no hagas preguntas en las FAQ
Sitio http://www.geoavila.com twitter: @GeoAvila
  #3 (permalink)  
Antiguo 13/10/2006, 09:42
 
Fecha de Ingreso: octubre-2006
Mensajes: 139
Antigüedad: 17 años, 6 meses
Puntos: 1
¿donde Encuentro El Ejemplo?

HOLA : NECESITO HACER EXACTAMENTE LO MISMO ¿ DONDE ENCUENTRO EL EJEMPLO? USANDO LA BUSQUEDA EN FAQs NO LO ENCUENTRO , POR FAVOR ALGUIEN QUE ME PEGUE EL LINK AL EJEMPLO CITADO . GRACIAS
  #4 (permalink)  
Antiguo 15/10/2006, 11:29
Avatar de GeoAvila
Colaborador
 
Fecha de Ingreso: diciembre-2003
Ubicación: Antigua Guatemala
Mensajes: 4.032
Antigüedad: 20 años, 4 meses
Puntos: 53
http://www.forosdelweb.com/showpost....&postcount=104

nos vemos..
__________________
* Antes de preguntar lee las FAQ, y por favor no hagas preguntas en las FAQ
Sitio http://www.geoavila.com twitter: @GeoAvila
  #5 (permalink)  
Antiguo 16/10/2006, 21:03
 
Fecha de Ingreso: octubre-2006
Mensajes: 139
Antigüedad: 17 años, 6 meses
Puntos: 1
GeoAvila : GRACIAS POR TU AYUDA. AÚN NO ME RESULTA MUY SENCILLO DE COMPRENDER. EN REALIDAD TENGO UN DATALIST QUE RELLENO CON DATOS PROVENIENTES DEL CAMPO temas , DE UNA TABLA ( tbltemas) QUIERO LOGRAR QUE AL CLICKEAR SOBRE UNO DE LOS ITEMS DEL DATALIST, ME MUESTRE ( EN ALGUNOS TEXTBOX) LOS DEMÁS REGISTROS DE LA TABLA QUE CORRESPONDEN CON ESE TEMA (libro, página, capítulo).
HE LEÍDO QUE SI UTILIZO UN LISTBOX CUANDO LA BASE CRECE DEMASIADO HABRÍA PROBLEMAS
¿ SE TE OCURRE COMO?
  #6 (permalink)  
Antiguo 17/10/2006, 17:16
 
Fecha de Ingreso: diciembre-2004
Mensajes: 129
Antigüedad: 19 años, 4 meses
Puntos: 0
yo uso el Mshflexgrid y no me va mal, por ejemplo en el grid yo incluyo el campo id del registro y si quiero no lo muestro(si no es necesario, grix.colwith(0)=0) al hacer click en el grid, en el evento del grid creo una consulta(select * from tabla where id="& grid.texmatric(rowsel,0) &"), donde le digo que me filtre todos los registros de la tabla cuyo id sea igual al id de la fila del grid que he seleccionado, luego teniendo todos los campos en un recorset llenas las variables que tengas

evento click del grid
select * from tabla where id = "& grid.texmatrix(rowsel,0) &"
set rst= funcionrecorset(sql,,,,,,,)
txtnombre= rst!nombre
txtdireccion= rst!direccion
n... = rstn...
  #7 (permalink)  
Antiguo 18/10/2006, 06:48
 
Fecha de Ingreso: octubre-2006
Mensajes: 139
Antigüedad: 17 años, 6 meses
Puntos: 1
Muchas Gracias A Todos Creo Que Con Esto Armaré Algo Como Lo Que Necesito. Saludos
  #8 (permalink)  
Antiguo 19/10/2006, 09:59
 
Fecha de Ingreso: octubre-2006
Mensajes: 139
Antigüedad: 17 años, 6 meses
Puntos: 1
EL DATALIST ME MATA !! : NECESITO ALGUNA AYUDA . NO HAY CASO , ESTOY ATASCADO Y NO PUEDO RESOLVERLO.
MI INTENTO ES QUE EL DATALIST ME MUESTRE UNA LISTA CONFORMADA POR EL CAMPO TEMAS DE UNA TABLA (son simplemente titulos de artículos de una revista) EN LA MISMA TABLA TENGO LOS CAMPOS : MES , AÑO , PÁGINA, QUE CORRESPONDEN CON ESE TEMA, QUIERO LLENAR 3 TEXTBOX CON LOS DATOS CORRESPONDIENTES , CON SOLO HACER CLICK SOBRE EL ITEM DE MI INTERÉS EN EL DATALIST . ¿ ALGUNA IDEA ?

CREO UNA CONSULTA SQL en datalist.click
On Error GoTo Interrupcion
Dim strQuery As String

strQuery = "Select * FROM Tbldatos WHERE temas = " & DataList1.BoundText & "'"

'With Form1.Adodc1
'Form1.Adodc1.RecordSource = strQuery
'Form1.Adodc1.Refresh
'End With

'With DataList1
'DataList1.Refresh
'End With

Exit Sub
Interrupcion:
MsgBox Err.Description

End Sub

ME DICE : MEMORIA INSUFICIENTE

???? QUE PUEDE SER ?

OTRO TEMA QUE ME INTERESA ES OFRECER UNA IMAGEN MINIATURA DE LA PORTADA DE LA REVISTA CORRESPONDIENTE . CON PICTURE.LOAD LAS CARGO , PERO , PREGUNTO : ESTAS IMAGENES ¿ DEBERÁN ESTAR DENTRO DE LA BASE DE DATOS O PUEDO ASIGNAR UNA CARPETA CON ESTAS IMAGENES Y COPIARLA O DISTRIBUIRLA ENTRE LOS USUARIOS , JUNTO CON EL COMPILADO DEL PROGRAMA? GRACIAS

Última edición por DIDAKE; 19/10/2006 a las 14:09
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 03:51.