If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > undefined function 'replace' in sql but works in access

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-23-08, 06:42
JMocha JMocha is offline
Registered User
 
Join Date: Oct 2008
Posts: 1
Question undefined function 'replace' in sql but works in access

I'm doing some pre-processing on an input file. From my Delphi app, I want to issue a command like the following to my MS Access db:

update importfile set realfirst = replace(realfirst, ',', '') where (instr(realfirst, ',') > 0)

If open a query in the db and execute that statement, it works.

If I put that statement in an ADOQuery's SQL or a KADAOTable's SQL and try to ExecSQL on it, Delphi gives me an "undefined function 'replace' in expression" error.

I've used both the D5 ADO query using an MS JET 4.0 connection, and with a DAO query. It fails the same way in both.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On