Hiya,
Unfortunately I can't seem to find examples of how the find & replace works in VBA so please can someone help me finish my bit of code!
Situation:
A number of tables are imported with the My_Field column having items such TSM_usualtext_blah
Blah could be anything.
All the other tables it links to only have the "usualtext" bit so I want to get rid of all the TSM_ bits, then _* for the dodgy endings.
Code I'm trying to get work to build up to this:
The VBA editor was expecting something after it to finish the line of code so I added the .Run -I'm not sure if this is correct as I can't find any examples. When I run it, I don't get any error messages, but also if I stick a message box after it, it doesn't pop up. Any suggestions as to how to finish it?
I need it to look at any part of the field rather than the whole field contents too.
Thanks

Unfortunately I can't seem to find examples of how the find & replace works in VBA so please can someone help me finish my bit of code!
Situation:
A number of tables are imported with the My_Field column having items such TSM_usualtext_blah
Blah could be anything.
All the other tables it links to only have the "usualtext" bit so I want to get rid of all the TSM_ bits, then _* for the dodgy endings.
Code I'm trying to get work to build up to this:
Code:
autoFindNReplace([My_Table], [My_Field], " TSM_ ", Null, DO_ALL_RECORDS).Run
The VBA editor was expecting something after it to finish the line of code so I added the .Run -I'm not sure if this is correct as I can't find any examples. When I run it, I don't get any error messages, but also if I stick a message box after it, it doesn't pop up. Any suggestions as to how to finish it?
I need it to look at any part of the field rather than the whole field contents too.
Thanks