Using A2010 in Windows 7.
This one really has me stumped. Can anyone see anything wrong with this statement?
currentdb.Execute "Update Text_File_FF set Statement_text = replace(Statement_Text,' ',' ')",dbfailonerror"
or
currentdb.Execute "Update Text_File_FF set Statement_text = replace(Statement_Text,"" "","" "")",dbfailonerror
I want to change all occurrances of a double space in the Statement_Text field to a single spaces. Statement_Text is Text 200 data type.
It worked fine in A2003 on Windows XP, but now both versions are giving me the "data type mismatch in criteria expression" error.
(To test, I used "A" and "B" instead of blanks - same error)
I checked all the names, and they are OK - I get different errors otherwise.
Any ideas?
Thanks.