Jump to content
Fórum Script Brasil
  • 0
Sign in to follow this  
rdpiza

Preciso de AJUDA COM PESQUISA Dinamica(DAO)

Question

Tentei colocar 2 index na tabela mas só funcona o 1°(Cadastro) 2°(Nome)  mesmo que eu mude o (DataCadastro.Recordset.FindFirst "Cadastro >= '" & txtPesquisa & "'") para (DataCadastro.Recordset.FindFirst "Nome >= '" & txtPesquisa & "'")
Porque o que tenho que fazer pra funcionar os 2(Cadastro e o Nome )?

bancodedados8U7WMJQK.jpg

Olá tenho uma txtPesquisa_Change que faz pesquia dinamica pelo codigo do cliente mas gostaria que Pesquisa-se pelo nome tmbm como faço segue codigo abaixo lembrando estou com DAO e usando DATA

Private Sub txtPesquisa_Change()
'Busca Dinamica
          DataCadastro.Recordset.FindFirst "Cadastro  >= '" & txtPesquisa & "'"

          If DataCadastro.Recordset.NoMatch Then
          MsgBox "Não encontrado"
Else
          End If
End Sub
 
Edited by rdpiza

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

Cloud Computing


  • Forum Statistics

    • Total Topics
      148442
    • Total Posts
      643900
×
×
  • Create New...