P
paulmitchell507
I am using Access 2003 and I would like to replace a specific value in
a string in table
a string in table
Code:
. I am using the function as the criteria to
update the current entry.
Replace([code],"7","8")
I want to replace the value 7 with value 8 in field [code]. The
problem I have is that I only want to replace the value 7 at string
position 5 in the code field. i.e.
AAAA7AA
Some of the field values have the number 7 at string positions before
position 5, I specifically want to change the value at position 5 and
not before
AA7A7AA - The replace function updates 7 at position 3 and 5
I tried to restrict the update to start at position 4
Replace([code],"7","8", 4)
Replace ( string1, find, replacement, [start, [count, [compare]]] )
But this removes all text in position 1-4. I just want to replace the
value at string position 5.
Can anyone offer any advise?