S
student
I'm trying to use this code below I saw on this website. When I paste the
code in the column just to the right of the column that contains the words I
want to replace I get this:
The expression you entered contains invalid sytax.
You may have entered an operand without an operator.
Per the instructions I created an Access Table called Words. I has one
column called RealAudioLink. I entered one record into this table to test.
The data entered was: wkdy20070416-a.rm.
What I'm trying to do here is do a massive word replace in a large table
called T_Programs_TestTable. It contains over 11,000 records. Specifically in
the RealAudioLink column I have many wkdy references. The problem here is
that they are all listed by day, month and year.
Sample of real data:
wkdy20070416-a.rm (needs to be WeekdayA20070416.rm)
wkdy20070416-b.rm (needs to be WeekdayB20070416.rm )
conv20061120.rm (needs to be conversation20061120.rm)
So I need to replace all instances of wkdy with Weekday, get rid of the dash
and put a capital A or B after the word Weekday in the filename.
How do I do this in Access?
code in the column just to the right of the column that contains the words I
want to replace I get this:
The expression you entered contains invalid sytax.
You may have entered an operand without an operator.
Code:
ORIGINAL:
UPDATE table INNER JOIN Words
ON field Like "*" & Words.Word & "*"
SET field = Replace(field, Words.Word, Words.Replacement)
MODIFIED FOR TESTING:
UPDATE TestTable INNER JOIN Words
ON RealAudioLink Like "*" & Words.Word & "*"
SET field = Replace(RealAudioLink, Words.Word, Words.Replacement)
Per the instructions I created an Access Table called Words. I has one
column called RealAudioLink. I entered one record into this table to test.
The data entered was: wkdy20070416-a.rm.
What I'm trying to do here is do a massive word replace in a large table
called T_Programs_TestTable. It contains over 11,000 records. Specifically in
the RealAudioLink column I have many wkdy references. The problem here is
that they are all listed by day, month and year.
Sample of real data:
wkdy20070416-a.rm (needs to be WeekdayA20070416.rm)
wkdy20070416-b.rm (needs to be WeekdayB20070416.rm )
conv20061120.rm (needs to be conversation20061120.rm)
So I need to replace all instances of wkdy with Weekday, get rid of the dash
and put a capital A or B after the word Weekday in the filename.
How do I do this in Access?