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 / Modules / DAO / VBA / October 2004

Tip: Looking for answers? Try searching our database.

Remove text from field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cvegas - 07 Oct 2004 16:25 GMT
I would like to run an update query and remove everthing to the right of the
comma in a particular field.  (Actually I want to remove the comma and
everthing to the right of the comma)

IE: San Francisco, CA
    Los Angeles, CA

Result San Francisco
         Los Angeles

Help with syntax would be greatly appreciated.
fredg - 07 Oct 2004 17:17 GMT
> I would like to run an update query and remove everthing to the right of the
> comma in a particular field.  (Actually I want to remove the comma and
[quoted text clipped - 7 lines]
>
> Help with syntax would be greatly appreciated.

Back up your table first.

Update YourTable Set YourTable.CombinedField =
Left([CombinedField],InStr([CombinedField],",")-1);
Signature

Fred
Please only reply to this newsgroup.
I do not reply to personal email.

 
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



©2008 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.