USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  consulta com dois campos
Trovão
INDAIATUBA
SP - BRASIL
Postada em 04/02/2005 15:10 hs            
preciso de uma ajuda...
No meu formulario tenho dois campos ( txt_obra e txt_etapa ). Possuo uma tabela que possui uma chave primaria composta de dois campos (cod_obra e cod_etapa). A pertunga e: Como faço a consulta para achar este registro na tabela? Tentei fazer assim mas nao deu certo. O que esta errado? alguem pode me ajudar?
Segue Exemplo:
    txt_etapa.Text = Format(txt_etapa.Text, "000000")
    vTBValores_Etapas.Find "cod_etapa = " & txt_etapa And "cod_obra = " & txt_obra, , , 1
        If Not vTBValores_Etapas.EOF Then ' se encontrou
        lbl_etapa = vTBValores_Etapas!desc_etapa
        txt_vlr_acumulado = Format(vTBValores_Etapas!valor_acumulado, "currency")
        vValor_Etapa = vTBValores_Etapas!valor
        consulta = True
    End If
qualquer coisa meu msn eh: savcom_tecnologia@hotmail.com
 
grato pela atenção de todos
     
Los Zeus®
Pontos: 2843 Pontos: 2843
SÃO PAULO
SP - BRASIL
Postada em 04/02/2005 15:37 hs            
Não entendi muito a sua duvida mas simplificaria num simples If acho que fica mais fácil:
 
Tabela.MoveF i r s t
While Tabela.eof = False
If txt_etapa = Tabela.Fields!cod_etapa and txt_obra = Tabela.Field!cod_obra Then
   'Aqui vc coloca a condição se for verdadeira o resultado
else
  Tabela.MoveNext
endif
Wend
 
Bom no caso acima uma consulta DAO simples levando em consideração que no lugar da pavra "Tabela" coloque o nome da tabela do seu BD....Bom acho que da pra ter uma idéia..rs
     
alex
não registrado
Postada em 16/10/2026 02:13 hs   
Start configuring your VIZIO Smart TV through https://viziocomsetupentercode.tawk.help/article/viziocom-setup-enter-code-not-working-fix-it-now  Prepare your network information, follow the setup wizard, register the television, and complete the necessary initial configuration.
https://viziosetupeasily.pages.dev/ can simplify the process of getting a VIZIO TV ready for use. Follow the displayed instructions, establish Wi-Fi connectivity, register the device, and complete the setup requirements.
If you're preparing a VIZIO television,https://sites.google.com/view/viziotvsetup/vizio-com-tv-setup/fix-internet-connection-issues-on-vizio-devices provides a useful starting point. Follow each configuration step, connect your network, complete registration, and review the available Smart TV settings.
https://sites.google.com/view/vizioguide/how-to-connect-vizio-tv-to-wifi can guide VIZIO customers through initial television configuration. Connect your TV, follow the setup prompts, establish internet access, register the device, and complete the setup sequence.
Configure your new VIZIO television efficiently with https://sites.google.com/view/vizioguide/how-to-create-or-sign-in-to-a-vizio-account Follow the on-screen instructions, connect Wi-Fi, complete registration, and finish the initial settings before exploring Smart TV features.
     
alex
não registrado
Postada em 16/10/2026 02:14 hs   
https://sites.google.com/view/vizio-tv-guide/faq/vizio-smart-tv-4k-resolution-support-guide provides a simple starting point for VIZIO TV installation. Follow the setup wizard, connect the television to your network, register your device, and complete the displayed configuration steps.
Start your Smart TV experience through https://sites.google.com/view/techknowledgebasehub/viziotvsetup Follow the initial configuration instructions, establish Wi-Fi access, register the television, and complete the required setup choices.
https://sites.google.com/view/vizio-tv-guide/faq/configure-a-vizio-tv-step-by-step-setup-guide can help users configure their VIZIO television from the initial setup screen. Follow the instructions carefully, connect the network, register the device, and complete the remaining settings.
For new VIZIO television owners, https://sites.google.com/view/vizio-tv-checklist/wi-fi-qr-code-and-account can provide useful setup direction. Follow the screen prompts, connect your home network, register the TV, and complete the configuration process.
https://sites.google.com/view/viziosmarttv-setup/faq/how-to-set-up-your-vizio-smart-tv-without-errors helps users prepare compatible VIZIO Smart TVs for connected use. Follow the setup instructions, establish internet access, complete registration, and configure the television before exploring applications.
     
alex
não registrado
Postada em 16/10/2026 02:14 hs   
Use https://sites.google.com/view/vizioguide/how-to-set-up-your-vizio-tv-in-10-easy-steps as a starting point for your VIZIO TV configuration. Follow each setup instruction, connect Wi-Fi, register your television, and finish the initial settings for use.
https://sites.google.com/view/viziotv-setupguide/how-to-reset-and-restart-your-vizio-tv can make VIZIO Smart TV setup easier by providing a clear configuration path. Follow the displayed prompts, connect the internet, complete registration, and finish the setup sequence.
Prepare your new VIZIO television with https://viziosmarttv.jimdosite.com Follow the setup wizard, establish network connectivity, register your device, and complete the necessary initial configuration before watching content.
https://techsolutionhelpline.blogspot.com/2026/04/vizio-smart-tv-how-to-set-up-for-Min.html is a helpful starting point for users configuring compatible VIZIO TVs. Follow the on-screen instructions, connect your network, complete registration, and configure available television settings.
Begin VIZIO television setup at https://we-found-the-solution.medium.com/how-to-set-up-your-vizio-smart-tv-963c1f6fb51b Follow the displayed configuration steps, connect Wi-Fi, register your device, and complete the initial process before exploring connected entertainment.
     
alex
não registrado
Postada em 16/10/2026 02:14 hs   
https://sites.google.com/view/vizio-com-complete-setup/activate-vizio-smart-tv can guide customers through important Min-use television settings. Follow the setup wizard, establish internet connectivity, register the TV, and complete the remaining configuration requirements.
Get your VIZIO Smart TV ready with https://supportgridhub.blogspot.com/2026/04/how-to-set-up-your-vizio-smart-tv.html Follow the on-screen setup process, connect your network, complete registration, and configure your television for supported connected features.
https://sites.google.com/view/vizio-tv-guide/vizio-smart-tv-setup-not-working-fix-guide provides a useful route for beginning VIZIO TV installation. Follow the setup prompts, connect to Wi-Fi, register the device, and finish the configuration before using Smart TV services.
Start configuring your VIZIO television through https://sites.google.com/view/viziosmarttv-setup/faq/step-by-step-guide-to-vizio-tv-setup-for-beginners Follow the initial instructions, establish network access, complete registration, and review the available setup choices for your specific device.
https://sites.google.com/view/vizio-tv-guide/faq/vizio-tv-remote-voice-control-setup can assist new VIZIO users with television configuration. Follow the displayed setup sequence, connect your internet service, register the device, and complete the necessary setup requirements.
     
Página(s): 1/3      PRÓXIMA »


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

[:)] = 
[:P] = 
[:(] = 
[;)] = 

HTML DESLIGADO

     
 VOLTAR

  



CyberWEB Network Ltda.    © Copyright 2000-2026   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página