S
Southern at Heart
strSQL = "UPDATE tblContacts SET tblContacts.HomeAddressStreet =
Replace([HomeAddressStreet],""&"",""&"") " & _
"WHERE (((tblContacts.HomeAddressStreet) Like ""*[&]*""));"
DoCmd.RunSQL (strSQL)
Fixing the & sign
I have the above code that replaces the '&' symbol with '&'
Is there a way to have it check each '&' symbol to see if it is already
followed by 'amp;' and not change it if that's the case? My '&' signs must
all be in the form '&' but if some of them are already fixed that way, then
my code above will mess it up by turning '&' into '&'
thanks
Replace([HomeAddressStreet],""&"",""&"") " & _
"WHERE (((tblContacts.HomeAddressStreet) Like ""*[&]*""));"
DoCmd.RunSQL (strSQL)
Fixing the & sign
I have the above code that replaces the '&' symbol with '&'
Is there a way to have it check each '&' symbol to see if it is already
followed by 'amp;' and not change it if that's the case? My '&' signs must
all be in the form '&' but if some of them are already fixed that way, then
my code above will mess it up by turning '&' into '&'
thanks