amp-web-push-widget button.amp-subscribe { display: inline-flex; align-items: center; border-radius: 5px; border: 0; box-sizing: border-box; margin: 0; padding: 10px 15px; cursor: pointer; outline: none; font-size: 15px; font-weight: 500; background: #4A90E2; margin-top: 7px; color: white; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .amp-logo amp-img{width:190px} .amp-menu input{display:none;}.amp-menu li.menu-item-has-children ul{display:none;}.amp-menu li{position:relative;display:block;}.amp-menu > li a{display:block;} /* Inline styles */ div.acss138d7{clear:both;}div.acssf5b84{--relposth-columns:3;--relposth-columns_m:2;--relposth-columns_t:2;}div.acssa8a3d{aspect-ratio:1/1;background:transparent no-repeat scroll 0% 0%;height:300px;max-width:300px;}div.acss13836{color:#333333;font-family:Arial;font-size:14px;height:75px;}span.acss47fcd{background:#FFFFFF;color:#000000;}div.acss0f1bf{display:none;}a.acssf23c5{font-size:8pt;}a.acss24ea4{font-size:16.4pt;}a.acss066f0{font-size:22pt;} .ampforwp_wc_shortcode{margin-top: 0;padding:0;display:inline-block;width: 100%;} .ampforwp_wc_shortcode li{position: relative;width:29%; font-size:12px; line-height: 1; float: left;list-style-type: none;margin:2%;} .ampforwp_wc_shortcode .onsale{position: absolute;top: 0;right: 0;background: #ddd;padding: 7px;font-size: 12px;} .single-post .ampforwp_wc_shortcode li amp-img{margin:0} .ampforwp-wc-title{margin: 8px 0px 10px 0px;font-size: 13px;} .ampforwp-wc-price{color:#444} .wc_widgettitle{text-align:center;margin-bottom: 0px;} .ampforwp-wc-price, .ampforwp_wc_star_rating{float:left;margin-right: 10px;} .icon-widgets:before {content: "\e1bd";}.icon-search:before {content: "\e8b6";}.icon-shopping-cart:after {content: "\e8cc";} /******* Paste your Custom CSS in this Editor *******/
Creación Software de Ventas Vb6

Curso de Software de Ventas Parte 28, Ventana de Ventas Parte 3

En este vídeo explico como buscar por la identificación del Cliente en el vídeo anterior Ventana de Ventas Parte 2 explique como buscar el cliente desde el botón Buscar.

Colabora y Suscribete a mi canal de

Para buscar el cliente por su identificación se debe captar cuando se presione la tecla Enter en el evento KeyUp de control TextBox, el código es el siguiente:

Private Sub txtIdentificacion_Cli_KeyUp(KeyCode As Integer, Shift As Integer)
    If KeyCode = 13 Then
       Call BuscarClienteIdentificacion
    End If
End Sub

Ahora toca crear el Sub Procedimiento BuscarClienteIdentificacion que se esta llamando desde el evento anterior:

Sub BuscarClienteIdentificacion()
    Dim RecordSet As New ADODB.RecordSet
    Dim Sql As String
    
    If txtIdentificacion_Cli.Text <> "" Then
    
        Sql = "Select IdCliente, NombreApellidos_cli, Identificacion_cli, Telefonos_cli, CupoAutorizado_cli From tblClientes Where Identificacion_cli = '" & txtIdentificacion_Cli.Text & "' "
        Set RecordSet = ConexionADO.Execute(Sql)
        
        If RecordSet.RecordCount > 0 Then
           With RecordSet
                Call SeleccionarCliente(!IdCliente, !Identificacion_cli, !NombreApellidos_cli, !Telefonos_cli, !CupoAutorizado_cli)
           End With
        Else
           MsgBox "El Cliente no existe", vbExclamation, "Buscar Cliente"
           txtIdentificacion_Cli.SetFocus
        End If
    End If
    
End Sub

Apóyanos siguiendo las redes sociales:

Suscribete a Youtube

Siguenos en Twitter

Siguenos en Facebook

Total Page Visits: 6824 - Today Page Visits: 1
Luis F. Martinez

Leave a Comment
Compartir
Publicado por
Luis F. Martinez

Publicaciones Recientes

CRUD Enviar y Recibir datos de Visual Basic 6 a PHP

Saludos, en este tutorial aprenderás a integrar tu aplicación de Visual Basic 6 con un…

4 meses hace

Problemas para acceder a Hotmail o Live.com desde el navegador web

Recientemente, muchos usuarios de Hotmail (ahora Outlook.com) han reportado un error al intentar iniciar sesión…

6 meses hace

Calculadora Básica en Visual Basic 6, Aprende a usar variables

En este proyecto, vamos a desarrollar una calculadora sencilla usando Visual Basic 6, que permite…

1 año hace

Lenguajes de Programación Más Demandados en 2024

6 de septiembre de 2024 - La demanda de desarrolladores de software sigue en aumento,…

1 año hace

La Unión Europea Aprueba la Primera Ley de Inteligencia Artificial del Mundo

En un movimiento histórico, la Unión Europea ha aprobado la primera ley de inteligencia artificial…

1 año hace

Sincronización de Datos en Línea VB6: Lleva tu Proyecto al Siguiente Nivel

¿Sigues trabajando con Visual Basic 6 y necesitas una forma eficiente de acceder a tus…

1 año hace

Este sitio utiliza cookies desea activarlas