I made a mistake. This sentence:
DoCmd.RunSQL (SQL)
is:
DoCmd.RunSQL (strSQL)
And also forgot to tell you how it works:
You fill the textboxes with the names of the table and field which has the
"N/A" values that you want to replace and, before that, click the button.
Rastro
Joe said:
Thanks fred... That was my initial thought as well. I'll create a macro
with
a several update queries.
Thanks
fredg said:
On Fri, 16 May 2008 13:06:06 -0700, Joe wrote:
Does anyone know a VB DoCmd for Find and Replace in an entire table?
I need to search for N/A and replace it with Undefined on a table.
Thanks
Back up your table first.
Run an Update query.
Update YourTable Set YourTable.FieldName =
Replace([FieldName],"N/A","Undefined");