HelloWorldGuy
MIS
Hello, I'm pretty new to Access and am trying out some new things. I want to add a dash to a table field data like :
Before:
CS220061000
T5325204000
14W47163000
TBR20131000
After:
CS2-20061000
T53-25204000
14W-47163000
TBR-20131000
the field name is ITEM_NUMBER
I'm thinking about a Query with a SQL statment kinda like
UPDATE MyTable SET ITEM_NUMBER = Format(ITEM_NUMBER, "@@@-@@@@@@@@")
WHERE Len(ITEM_NUMBER) = 11
A little unsure on the SQL syntax...
Thanks!
-Guy
Before:
CS220061000
T5325204000
14W47163000
TBR20131000
After:
CS2-20061000
T53-25204000
14W-47163000
TBR-20131000
the field name is ITEM_NUMBER
I'm thinking about a Query with a SQL statment kinda like
UPDATE MyTable SET ITEM_NUMBER = Format(ITEM_NUMBER, "@@@-@@@@@@@@")
WHERE Len(ITEM_NUMBER) = 11
A little unsure on the SQL syntax...
Thanks!
-Guy