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 / Queries / April 2008

Tip: Looking for answers? Try searching our database.

If then in Access SQL or macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dksj67 - 21 Apr 2008 18:01 GMT
I would like to write a query or macro in Access 2003 that will go through a
table and perform the following function:

If text in FieldName starts with letter "Z" then make value in FieldName2 =
"". What is the quickest way to go about this task?

Dan Kreiling
Marshall Barton - 21 Apr 2008 18:56 GMT
>I would like to write a query or macro in Access 2003 that will go through a
>table and perform the following function:
>
>If text in FieldName starts with letter "Z" then make value in FieldName2 =
>"". What is the quickest way to go about this task?

UPDATE table SET FieldName2 = ""
WHERE FieldName Like "Z*"

When making this kind of semi global change to data, be sure
to make a backup copy of your data table so you can recover
the original data if anything goes off the rails.

Signature

Marsh
MVP [MS Access]

 
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.