Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem With Replace Function

Status
Not open for further replies.

Kenos

Programmer
Jul 21, 2002
28
0
0
US
V_SQL = V_SQL & &quot;RTrim(LTrim(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((SELECT ParentName From CategoryParentLookUp WHERE Product.CategoryID =MainID),',','<\Co>'),CHR(34),'<\DQ>'),CHR(13),''),CHR(9),''),CHR(10),''))) AS MainCategory From PRODUCT

I get this Error.
Undefined function 'REPLACE' in expression

When I run this from my Access DB it works fine.


But will not work with running from web page

Question is:
Is there a work around to this?
Not using the REPLACE Function in ASP,
Because it the Record Set is large and taxes the server.

Any help would be great.
 
you forgot to end it correctly
you need to provide the &quot; at the end of the line
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top