Possible to update ? (1 Viewer)

kirkm

Registered User.
Local time
Today, 18:49
Joined
Oct 30, 2008
Messages
1,257
Can an single update query fix spelling mistake in e.g. all instances of "Sydney Lipton" change to "Sidney Lipton"

The field is called "AC" and contains other text and "Sydney Lipton" could appear anywhere.
 

NauticalGent

Ignore List Poster Boy
Local time
Today, 02:49
Joined
Apr 27, 2015
Messages
6,317
In short, yes. A simple Update Query will do...have you tried it?[
 

kirkm

Registered User.
Local time
Today, 18:49
Joined
Oct 30, 2008
Messages
1,257
LOL no I have not! I'd have to setup some test conditions and fluff around for ages. I'd find it much easier to do it all in VBA.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 14:49
Joined
May 7, 2009
Messages
19,226
it is much faster to proofread and correct
such mistake.
with names, it's hard since there can
be Syney, Sidney, Sidni, Sidhni.
only that person knows and you will
know if you got informed.
 

June7

AWF VIP
Local time
Yesterday, 22:49
Joined
Mar 9, 2014
Messages
5,463
Run UPDATE action sql in VBA.

CurrentDb.Execute "UPDATE tablename SET AC = Replace(AC, 'Sydney Lipton', 'Sidney Lipton')"

Can even run that from Immediate Window.
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 23:49
Joined
Oct 29, 2018
Messages
21,447
LOL no I have not! I'd have to setup some test conditions and fluff around for ages. I'd find it much easier to do it all in VBA.
In most cases, it is faster and simpler to use an action query than VBA [recordsets].
 

kirkm

Registered User.
Local time
Today, 18:49
Joined
Oct 30, 2008
Messages
1,257
Very nice June, I can see that's a really good solution. Wouldn't have though of db.Execute.
 

Users who are viewing this thread

Top Bottom