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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace proper Ucase text with lcase when word like "and", "or&q 1

Status
Not open for further replies.

DanScott

Programmer
Sep 13, 2002
14
US
I have a Table with a text field that has been properized, but I need to Properize (lowercase) or run a second function that will make these certain words all lowercase. I have created a table that list "oldtext" and "newtext" (example "Or" and "OR") all I want to do is look thru the text field for the word in "oldtext" and replace it with "newtext". I have had no success up to now. I am sending the function the data via a SQL update statement attached to a button. Any help in making this function work properly is greatly appreciated or is there some other way to make this happen.

Dan
 
Try this select and if it works then turn it into an update.

select Replace(fieldname,oldtext,newtext) from table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top