Pessoal, boa tarde.
Estou tentando fazer uma pesquisa em um ibquery, mas não sei exatamente oque fazer.
O meu ibQuery tem vários campos, mas na verdade só quero pesquisar três campos. (VEICULO, PLACA, MES e ANO).
Estou tentando fazer o seguinte:
ibquery1.Active:=false;
ibquery1.SQL.Clear;
ibquery1.SQL.Add('select VEICULO from ABASTECIMENTO where VEICULO='+edit1.Text);
ibquery1.SQL.Add('select PLACA from ABASTECIMENTO where PLACA='+edit2.Text);
ibquery1.SQL.Add('select MES from ABASTECIMENTO where MES='+edit3.Text);
ibquery1.SQL.Add('select ANO from ABASTECIMENTO where ANO='+edit4.Text);
ibquery1.active:=true;
Mas não funciona não. Procurei bastante pela net mas não encontrei nada que realmente me ajudasse. Se alguém puder me ajudar.... Valewzzzz
Pesquisa Em Ibquery
Started By Renan Fernandes, 14/05/2006, 18:00
1 reply to this topic
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)