Re: ADO exception with character combination inside string...
- From: Bo Berglund <bo.berglund@xxxxxxxxx>
- Date: Thu, 21 Sep 2006 07:41:58 +0200
On Wed, 20 Sep 2006 22:16:20 -0500, Brian Bushay TeamB
<BBushay@xxxxxxxxx> wrote:
procedure TForm1.btnModifyClick(Sender: TObject);
var
SQLString: string;
begin
try
SQLString := 'UPDATE Categories SET [Description] = ''' +
edData.Text + ''' WHERE CategoryID = 4';
use the QuotedStr function
SQLString := 'UPDATE Categories SET [Description] = '
+QuotedStr(edData.Text) + ' WHERE CategoryID = 4';
Tried this but the exception now is:
Line 1: Incorrect syntax near '='
when my string is 'SET TEST="TNC:\CHARLIE"'
/Bo
.
- Follow-Ups:
- Re: ADO exception with character combination inside string...
- From: Bill Todd
- Re: ADO exception with character combination inside string...
- References:
- ADO exception with character combination inside string...
- From: Bo Berglund
- Re: ADO exception with character combination inside string...
- From: Bo Berglund
- Re: ADO exception with character combination inside string...
- From: Brian Bushay TeamB
- ADO exception with character combination inside string...
- Prev by Date: Re: Proper way of using ctDynamic cursortype on network with MS Access
- Next by Date: Re: ADO exception with character combination inside string...
- Previous by thread: Re: ADO exception with character combination inside string...
- Next by thread: Re: ADO exception with character combination inside string...
- Index(es):
Relevant Pages
|