The_Kurgan
Active Member
- Joined
- Jan 10, 2006
- Messages
- 270
Greetings, group! I simply would like to use VBA to do a find/replace in an entire table. I'm using the code below which works great for a single column. My question is this: Is there a way to do a find/replace on an entire table (all columns) or will I have to iterate through all columns?
I've tried
but that doesn't seem to work.
TIA!
Code:
Dim db As Database
Set db = CurrentDb
sSQL = "UPDATE MyTable SET [My Field] = ""Gecko"" WHERE [My Field] = ""Monkey"""
db.Execute sSQL, dbFailOnError
I've tried
Code:
sSQL = "UPDATE MyTable SET MyTable.* = ""Gecko"" WHERE MyTable.* = ""Monkey"""
TIA!