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

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  Filtar em SQL URGENTE
Nilton
não registrado
ENUNCIADA !
Postada em 16/05/2009 23:34 hs   
Consegui se enteresar pra alguem fiz assim:

Private Sub cmdImprimir_Click()
Dim Resp As Byte
DataSisnews.rsCmdPedidos.Filter = "Nome = '" & txtDadosPesquisa1.Text & "'"
If Len(txtDadosPesquisa1.Text) <= 0 Then
MsgBox "Selecione o Pedido para Impressão! ", vbExclamation, " Sisnews Sistemas "
Else

Dim a
  a = MsgBox("Confirma a Impressão de : " & txtDadosPesquisa1.Text & " !", vbYesNo + vbQuestion, " Impressão ")
  If a = vbYes Then
  
txtDadosPesquisa1.SetFocus
PrintPrdidoAtual.PrintReport
End If
End If
End Sub

t+
Nilton
   
Nilton Vianna
AMPARO
SP - BRASIL
Postada em 16/05/2009 23:37 hs         
Postada em 16/05/2009 23:34 hs      Clique aqui para enviar email para o autor  njnews@bol.com.br
Consegui se enteresar pra alguem fiz assim:

Private Sub cmdImprimir_Click()
Dim Resp As Byte
DataSisnews.rsCmdPedidos.Filter = "Nome = '" & txtDadosPesquisa1.Text & "'"
If Len(txtDadosPesquisa1.Text) <= 0 Then
MsgBox "Selecione o Pedido para Impressão! ", vbExclamation, " Sisnews Sistemas "
Else

Dim a
  a = MsgBox("Confirma a Impressão de : " & txtDadosPesquisa1.Text & " !", vbYesNo + vbQuestion, " Impressão ")
  If a = vbYes Then
  
txtDadosPesquisa1.SetFocus
PrintPrdidoAtual.PrintReport
End If
End If
End Sub

no txtDadosPesquisa1,2,3,4

coloca cada tipo de pesquisa tipo, nome, cidade, numero etc..

 


t+
Nilton
     
Página(s): 2/2     « ANTERIOR  


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

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

HTML DESLIGADO

     
 VOLTAR

  



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