Fórum fazer consulta usando edit no dbgrid - delphi #595783
27/07/2018
0
a consulta esta assim:
with ClientDataSet1 do
begin
Filtered := False;
Filter :=Label_busca1.Caption + 'Like' + UpperCase(QuotedStr(Edit_busca1.Text + '%'));
Filtered := True;
Open;
end;
Lucas Araujo
Curtir tópico
+ 0Post mais votado
27/07/2018
with ClientDataSet1 do
begin
Filtered := False;
Filter :=Label_busca1.Caption + 'Like' + UpperCase(QuotedStr(Edit_busca1.Text + '%')) + ' AND ' + Label_busca2.Caption + 'Like' + UpperCase(QuotedStr(Edit_busca2.Text + '%')) ;
Filtered := True;
Open;
end;
E assim por diante.
Espero ter ajudado.
Roberto Wutke
Gostei + 1
Mais Posts
30/07/2018
Lucas Araujo
Gostei + 0
30/07/2018
Lucas Araujo
da a mensagem de erro "Could not convert variant of type (unicodeString) into type (integer)"
Gostei + 0
30/07/2018
Roberto Wutke
Espero ajudar.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)