Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Remove extra space in middle of text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JS - 19 Jul 2007 21:36 GMT
I have a field that has 2 spaces in the middle in some of the fields that are
in a table.  For example... Accounting--(0001), where a - represents a single
space.  some others do not have the 2 spaces... Marketing-(0002)  I tried
using the following trim formula but it doesn't trim it down for me.  
=trim([field name]) Any suggestions?
Michael Gramelspacher - 19 Jul 2007 21:50 GMT
> I have a field that has 2 spaces in the middle in some of the fields that are
> in a table.  For example... Accounting--(0001), where a - represents a single
> space.  some others do not have the 2 spaces... Marketing-(0002)  I tried
> using the following trim formula but it doesn't trim it down for me.  
> =trim([field name]) Any suggestions?

?Replace("Accounting--(0001)","--","-")
Accounting-(0001)

?Replace("Marketing-(0002)","--","-")
Marketing-(0002)

?Replace("New  York","  "," ")
New York

try it in immediate window.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.