delete a digit in a field

damcloodt

Registered User.
Local time
Today, 11:41
Joined
Sep 23, 2008
Messages
16
Hello,

I want to delete the third digit for all records in a column, is there a query that I can use in design view to do this?

for instance "ab 123" should become "ab123"

Thanks a lot for all your help!
 
if you actually need to delete it see other post use the following
in an update query

Code:
UPDATE YourTableName SET [YourFieldName] = Replace([YourFieldName]," ","");
 
dc's method will delete any spaces anywhere

if you want to specifically delete the third character then you need to select the first two chars, and the 4th char to the end

so

mystring = left(mystring,2) & mid(mystring,4)
 
dc's method will delete any spaces anywhere

if you want to specifically delete the third character then you need to select the first two chars, and the 4th char to the end

so

mystring = left(mystring,2) & mid(mystring,4)



thanks it worked!!
 

Users who are viewing this thread

Back
Top Bottom