Re: ADOQuery Command Text does not return a result set
- From: "Vitali Kalinin" <vitkalinin@xxxxxxxxx>
- Date: Mon, 26 May 2008 15:32:46 +0300
"Leposava Knez" <leposava.knez@xxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:4836b68d$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi1. It is strongly advised to use Parameters or at least QuotedStr function
I have this code
ADOQ2.Active:=False;
ADOQ2.Close;
ADOQ2.SQL.Clear;
sqlFill := '';
sqlFill := ('UPDATE Izpisi ');
sqlFill := sqlFill+(' Set DATA =
'''+AdoTable1.FieldByName('data').AsString+'''' );
sqlFill := sqlFill+('WHERE IZPISTIP = 1');
ADOQ2.SQL.Add(sqlFill);
ADOQ2.ExecSQL;
ADOQ2.Active:=True;
and I get this error message: Command Text does not return a result set
what is the problem?
for supplying values into SQL
2. Remove "ADOQ2.Active:=True;" since ADOQ2 holds Update query but not
Select query.
.
- References:
- ADOQuery Command Text does not return a result set
- From: Leposava Knez
- ADOQuery Command Text does not return a result set
- Prev by Date: Re: ADOQuery Command Text does not return a result set
- Next by Date: Re: ADO, ShortDateFormat and Terminal Services/Citrix
- Previous by thread: Re: ADOQuery Command Text does not return a result set
- Next by thread: ADO, ShortDateFormat and Terminal Services/Citrix
- Index(es):
Relevant Pages
|