replace problem

Marcel2586

Registered User.
Local time
Today, 14:35
Joined
Mar 1, 2012
Messages
41
Hello all,

I have a table and in this table i have a field called MainWrkctr.
The records shows 1000/2600, 1000/2400CK, 1000/1600 and so on.
What i need is only behind 1000/.
I tried a update query Replace([MainWrkctr],"1000/","")
Also MID ([MainWrkctr],5,4) and Right([MainWrkctr],4)
But all seems to fail, i still get 1000/2600
:confused:

Thanks in advance
 
I suggest to use an UPDATE QUERY.
Look at "DemoReplace1000A2000.mdb" (attachment, zip).
Look at Table1, Query1.
Run Query1, before make a copy of your table.
 

Attachments

Another method is
Code:
SELECT Right(MainWrkctr, Len(MainWrkctr) - InStr(1, MainWrkctr, "/")) AS ShortWrkctr FROM tt;
 

Users who are viewing this thread

Back
Top Bottom