Alisson, 

Tente alterar de "Condiçoes" para "Condicoes".

Eu tenho uma seqüência idêntica à sua e funciona normalmente com nosso
banco de dados (ctree):

SQLQuery1.SQL.Clear;
SQLQuery1.SQL.Add('SELECT im_itemnum FROM itemmast WHERE im_itemnum =
''1''');
SQLQuery1.Open;
if(SQLQuery1.RecordCount = 1)
then
        SQLConnection1.Commit(td);
Else
        SQLConnection1.Rollback(td);

Fora este problema de utilização de um caractere não permitido no Delphi
(que bem pode ter sido um erro do editor de email, e não seu no código),
não vi maiores problemas (desde que a tabela exista, claro). Boa sorte,

Almir Fernandes 
Diretor Operacional 
FairCom do Brasil Ltda. 
Fone: 55-11-3872-9802 
Fax:  55-11-3875-1309
Email:  [EMAIL PROTECTED]
www.faircom.com.br 
 
FairCom. Providing engineering level, cross-platform database
development tools since 1979!!!!
 
Notice: The information enclosed in this electronic mail message,
including any attachments, is the confidential property of FairCom
Corporation. All rights reserved under copyright and applicable laws.
Use of FairCom software and/or source code contained in this email or an
attachment thereto or accessed through any enclosed link will be subject
to all terms of any contracts in effect between FairCom and the
recipient. If you are unsure of the meaning or applicability of any
terms of such agreements, before downloading or accessing the software
you should seek advice of counsel or contact FairCom's contract
department for clarification.

-----Mensagem original-----
De: delphi-br@yahoogrupos.com.br [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 3 de junho de 2005 09:40
Para: delphi-br@yahoogrupos.com.br
Assunto: SqlQuery não aceita RecordCount

Pessoal,

Faço uma Consulta usando o Componente SqlQuery da Paleta DbExpress. 

SqlQuery.Sql.Clear;
SqlQuery.Sql.Add('Select Campos From TabelaX Where Condiçoes');
SqlQuery.Open;

Então tento pegar o número de registros da consulta:
VariavelQualquer := SqlQuery.RecordCount;


Dá o seguinte erro: "TABLE UNKNOWN TABELAX". Esse componente sempre dá 
esse erro. Alguém pode me ajudar?

[As partes desta mensagem que não continham texto foram removidas]



 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.4.0 - Release Date: 1/6/2005
 



-- 
<<<<< FAVOR REMOVER ESTA PARTE AO RESPONDER ESTA MENSAGEM >>>>>

Para ver as mensagens antigas, acesse:
 http://br.groups.yahoo.com/group/delphi-br/messages

Para falar com o moderador, envie um e-mail para:
 [EMAIL PROTECTED] ou [EMAIL PROTECTED]
 
Links do Yahoo! Grupos

<*> Para visitar o site do seu grupo na web, acesse:
    http://br.groups.yahoo.com/group/delphi-br/

<*> Para sair deste grupo, envie um e-mail para:
    [EMAIL PROTECTED]

<*> O uso que você faz do Yahoo! Grupos está sujeito aos:
    http://br.yahoo.com/info/utos.html

 



Responder a