Hi shiro,
you're welcome
make a new query with this as its SQL:
~~~
UPDATE [Tablename]
SET [fieldname] = replace([fieldname], " ","")
~~~
WHERE
Tablename is the name of your table
fieldname is the name of the field
~~~
Then, click the exclamation point ! icon to run the query
be sure to backup your database first!!!
Warm Regards,
Crystal
remote programming and training
Access Basics
8-part free tutorial that covers essentials in Access
http://www.AccessMVP.com/strive4peace
*
have an awesome day
*
shiro wrote:
And Thank's for the response,
But how to edit the existing data,
the field had 4000 record,can
edit it with a code,
Thank's again
Hi shiro,
use the control's BeforeUpdateevent to Cancel the update if there is
something that does not fit the requirements for the data
'~~~~~~~~~~~~
if InStr(me.activecontrol," ") > 0 then
msgbox "Value cannot contain a space",,"Re-enter Value"
CANCEL = true
exit sub
end if
'~~~~~~~~~~~~
or, if you just want to correct it for them, use the control AfterUpdate
event
'~~~~~~~~~~~~
if not isNull(me.activecontrol) then
me.activecontrol = replace(me.activecontrol, " ","")
end if
'~~~~~~~~~~~~
Warm Regards,
Crystal
remote programming and training
Access Basics
8-part free tutorial that covers essentials in Access
http://www.AccessMVP.com/strive4peace
*
have an awesome day
*
shiro wrote:
Hi all,
how to cancel the update even of a txtbox
if the user type a value with space character.
Or automatically delete the space character
since I won't the data with space character.
(space is disallow)
thank's in advance.