Fórum Consulta em uma Tabela. #166742
27/06/2003
0
Estou colocando a seguinte linha de comando.
cod := dbedit1.Text;
while not table1.Eof do
table1.Next;
memo1.Lines.Add(cod);
if table1.Locate(´cdmrc´,cod,[]) then
begin
table1.Next;
if cod = dbedit1.Text then
label1.Visible := true;
label1.Caption := ´DUPLICADA ENCONTRADA´;
Gostaria de saber aonde estou errando para consertar logo e poder voltar a trabalhar normalmente.
Rscrj
Curtir tópico
+ 0Posts
27/06/2003
Bilouro
Gostei + 0
27/06/2003
Netosdr
Explique melhor..
--
[]´s
NETOSDR
Sebastião B. Neto
Gostei + 0
27/06/2003
Bilouro
SELECT T.COD, T.QTD FROM ( SELECT COD, COUNT(COD) QTD FROM TABELA_X GROUP BY COD ) T WHERE T.QTD > 1
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)