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

UPDATE part of column using Wildcard?

Status
Not open for further replies.

epkiran

Programmer
Jun 26, 2001
7
SE
I want to update the column emailadress
but only the domainadress..


UPDATE Table
SET Column LIKE '%new.se'
WHERE Column LIKE '%old.se'

but it seems to be impossible using wildcards
in the SET-statement...


 
You are correct. You cannot use LIKE in the SET statement. Also, JET prefers * rather than % for the wildcard character. You can try this statement.

UPDATE Table
SET Column = Left([Column], instr([Column],"@")) & "new.se"
WHERE Column LIKE "*old.se"
Terry

"I'm not dumb. I just have a command of thoroughly useless information." - Calvin, of Calvin and Hobbes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top