Comparar Registro de Tabelas

Delphi

15/03/2011

Bom pessoal estou apanhando para fazer comparações entre tabelas porem cada tabela esta em base de dados diferentes

estavo fazendo dessa form

var
  i : Integer;
begin
  with ib_cupom do
  begin
      close;
      sql.clear;
      sql.Text := 'select * from cupom '+
                  'where numero <> '''+ib_c000032CUPOM_NUMERO.AsString+'''';
      open;
      first;
      Grid.ClearRows;
      while not ib_cupom.Eof do
      begin
        Grid.AddRow(1);
        Grid.Cell[0,i].AsString := ib_cupomNUMERO.AsString;
        ib_cupom.Next;
      end;
    end;
  end;
end;

mas esta errado pois nao vi resultado...

alguem pode m ajudar  com essa colocação...
Laelson Fagundes

Laelson Fagundes

Curtidas 0
POSTAR