Fórum Filtro no DBGrid!! #188262
13/10/2003
0
loja cod descrição
01 03 toca
02 04 calca
03 03 toca
gostaria de colocar cada registro de loja em diferentes DBGrid, precisaria fazer um filtro para isto no DBGrid, alguem sabe como fazer, valeu!!
Host
Curtir tópico
+ 0Posts
13/10/2003
Fluka
Use o comando filter para issso
tabela.filter:=´(´campo = ´ + variavel)´;
Gostei + 0
13/10/2003
Afarias
T+
Gostei + 0
13/10/2003
Fluka
Gostei + 0
10/08/2020
Socrates Foschera
with dm.Ficha_Seguimento do
begin
Close;
SQL.Clear;
SQL.Add('SELECT ficha_seguimento.`Data de Cadastro`,');
SQL.Add('ficha_seguimento.Nome, cadastro_cliente.cpfcnpj,');
SQL.Add('ficha_seguimento.`Tipo Maquinario`,');
SQL.Add('fich_Seguimento.Marca, ficha_seguimento.Chassis, ficha_seguimento.Placa,');
SQL.Add('ficha_seguimento.Ano, ficha_seguimento.Modelo,');
SQL.Add('ficha_seguimento.Cor, ficha_seguimento.`Hora do Motor`,');
SQL.Add('ficha_seguimento.`Hora da Trilha`,');
SQL.Add('FROM ficha_seguimento');
SQL.Add('LEFT JOIN cadastro_cliente');
SQL.Add('ON ficha_seguimento.IDF = cadastro_cliente.Id');
SQL.Add('where ficha_seguimento.Nome = '''+FrmCadastro_Consulta_Cliente.EditLocaliza_Cli.Text+'''');
open;
end;
Gostei + 0
11/08/2020
Emerson Nascimento
with dm.Ficha_Seguimento do
begin
Close;
SQL.Clear;
SQL.Add('SELECT ficha_seguimento.`Data de Cadastro`,');
SQL.Add('ficha_seguimento.Nome, cadastro_cliente.cpfcnpj,');
SQL.Add('ficha_seguimento.`Tipo Maquinario`,');
SQL.Add('fich_Seguimento.Marca, ficha_seguimento.Chassis, ficha_seguimento.Placa,');
SQL.Add('ficha_seguimento.Ano, ficha_seguimento.Modelo,');
SQL.Add('ficha_seguimento.Cor, ficha_seguimento.`Hora do Motor`,');
SQL.Add('ficha_seguimento.`Hora da Trilha`,');
SQL.Add('FROM ficha_seguimento');
SQL.Add('LEFT JOIN cadastro_cliente');
SQL.Add('ON ficha_seguimento.IDF = cadastro_cliente.Id');
SQL.Add('where Upper(ficha_seguimento.Nome) like ''%'+AnsiUppercase(trim(FrmCadastro_Consulta_Cliente.EditLocaliza_Cli.Text))+'%'' ');
open;
end;Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)