
23/10/2004, 10:11
|
 | Colaborador | | Fecha de Ingreso: diciembre-2003 Ubicación: Antigua Guatemala
Mensajes: 4.032
Antigüedad: 21 años, 2 meses Puntos: 53 | |
Código:
Private Sub Command1_Click()
dim sql as string
sql = "select Nombre,Telefono,Fax,Email,Direccion from Directorio where Nombre like %'" & txtNombre.Text & "'%"
Set rs = cn.Execute(sql)
If IsNull(rs(0)) Then
MsgBox "No Existe el registro"
Else
txtNombre.Text = rs!Nombre ' o tambien rs(1)
End If
End Sub
__________________ * Antes de preguntar lee las FAQ, y por favor no hagas preguntas en las FAQ
Sitio http://www.geoavila.com twitter: @GeoAvila |