Fórum Pesquisa em uma dbgrid #391437
29/11/2010
0
DataModule_dados.TblProdutos.Locate('PRODUTO',Vararrayof([EditPesquisa.Text]),[loPartialKey,LocaseInsensitive]);Daniel
Curtir tópico
+ 0Posts
29/11/2010
Leonardo Xavier
(Select * from tabela where meucampo='+EditPesquisa.Text+'')
Gostei + 0
29/11/2010
Daniel
(Select * from tabela where meucampo='+EditPesquisa.Text+'')
Gostei + 0
29/11/2010
Leonardo Xavier
Gostei + 0
29/11/2010
Daniel
Gostei + 0
29/11/2010
Leonardo Xavier
Query1.Close;
Query1.SQL.Clear;
Query1.SQL.Add('select *from minhatabela where campo:='+meu_edit+'');
Query1.Prepare;
Query1.Open;
Gostei + 0
29/11/2010
Daniel
Query1.Close;
Query1.SQL.Clear;
Query1.SQL.Add('select *from minhatabela where campo:='+meu_edit+'');
Query1.Prepare;
Query1.Open;
Gostei + 0
29/11/2010
Leonardo Xavier
Query1.Close;
Query1.SQL.Clear;
Query1.SQL.Add('select *from minhatabela where campo:='+meu_edit+'');
Query1.Prepare;
Query1.Open;
Esta rotina Não realiza busca diretamente no evento on change, mas você tem que colocar o texto a ser pesquisado em algum edit e colocar este cógigo em um botão de sua preferencia. E após ter digitado no edit clica no botão.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)