BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error SQL

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Katarina
Guest





PostPosted: Tue Apr 20, 2004 5:29 pm    Post subject: Error SQL Reply with quote




I make a program and it likes this:
Query1.Active:= false;
Query1.Sql.Clear;
Query1.Sql.Add('update c:myDocumtable1.dbf value=0');
Query1.ExecSql;

Then, I get a message:
First:“Project Project1.exe raised exception class EDBEngineError with message ‘Invalid use of keyword.
Token:?
Line Number:1’.Process stopped. Use Step or Run to continue.”

Second:“Invalid use of keyword.
Token:?
Line Number:1.”

How can I solve this problem? Thanks in advance.

Back to top
Katarina
Guest





PostPosted: Tue Apr 20, 2004 6:08 pm    Post subject: Re: Error SQL Reply with quote




Thank you very much, Sverre.
Regards,
Katarina!

"Sverre Hårstadstrand" <sverreeh1 (AT) autocalc (DOT) no> wrote:
Quote:
Change
Query1.Sql.Add('update c:myDocumtable1.dbf value=0');
to
Query1.Sql.Add('update "c:myDocumtable1.dbf" set value=0');
provided you have a field named Value in your table...

SverreEH




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.