 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Katarina Guest
|
Posted: Tue Apr 20, 2004 5:29 pm Post subject: Error SQL |
|
|
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
|
Posted: Tue Apr 20, 2004 6:08 pm Post subject: Re: Error SQL |
|
|
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 |
|
 |
|
|
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
|
|