G
Gordon
I am trying to update a whole series of records using SQL. The field
is of the format:
ABC3#789\text1
ABC3#625\text2
ABC3#429\text3
etc etc
The first 5 characters of the field are constant.
In effect I want to remove all parts of the field to the left of and
including the "\". I thought of trying to replace that part of the
field with "". Thus I have tried using an update query in SQL:
strsql = "UPDATE tblRegister SET tblRegistert.fldFilename =
Replace(fldFilename,'ABC#3???\','') "
docmd.runSQL strsql
But this does not work.
Can anyone see what I am doing wrong or suggest a better way.
Thanks
Gordon
is of the format:
ABC3#789\text1
ABC3#625\text2
ABC3#429\text3
etc etc
The first 5 characters of the field are constant.
In effect I want to remove all parts of the field to the left of and
including the "\". I thought of trying to replace that part of the
field with "". Thus I have tried using an update query in SQL:
strsql = "UPDATE tblRegister SET tblRegistert.fldFilename =
Replace(fldFilename,'ABC#3???\','') "
docmd.runSQL strsql
But this does not work.
Can anyone see what I am doing wrong or suggest a better way.
Thanks
Gordon