A
atarbaer
I would like to find and replace several values in my Access table.
For example, I would like to change all "%40" to "@", but rather than
specify a single field/column of my table to search through, I would
like the code to search through all of the fields in my table (there
are too many replacements and too many field names to specify).
How can I modify the code below so that it searches through each field
in the table?
Public Function RunCleanValues()
DoCmd.RunSQL "UPDATE [mytable] SET [fieldname] =
Replace([fieldname],'%40','@');"
End Function
Thank you in advance.
For example, I would like to change all "%40" to "@", but rather than
specify a single field/column of my table to search through, I would
like the code to search through all of the fields in my table (there
are too many replacements and too many field names to specify).
How can I modify the code below so that it searches through each field
in the table?
Public Function RunCleanValues()
DoCmd.RunSQL "UPDATE [mytable] SET [fieldname] =
Replace([fieldname],'%40','@');"
End Function
Thank you in advance.