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

Update query is not updating a value in the first 3 positions of text field

Status
Not open for further replies.

Pack10

Programmer
Feb 3, 2010
495
US
I have a large table that is fed from Sharepoint. One of the fields has some junk in it.
One field that i need to clean up is a 10 character field....some contain "INC-and then the numeric values....
Trying to do an update query to remove the INC INC- or INC - .....
I still see them in the table.

This is the code that access creates....
UPDATE [Combined Quality Tracker] SET [Combined Quality Tracker].[INC ID] = Right("0000000000" & [INC ID],10)
WHERE (((Left$([INC ID],3))="INC")) OR (((Left$([INC ID],4))="INC-")) OR (((Left$([INC ID],5))="INC -"));
 
Solved it using 3 different queries....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top