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 / May 2007

Tip: Looking for answers? Try searching our database.

Chang of code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ramesh - 14 May 2007 15:49 GMT
HI,

I have a Product table with fields Oldcode and Newcode.  Now I need to
replace the ProductCodes in the Order table, the old Codes with the
corresponding New codes.

How can i do this other than tediously using Find & replace?  Is there a way
i could create some Update query to pick up from the Product table and
replace?

Thanks for any help.

Ramesh
Al Campagna - 14 May 2007 16:04 GMT
Ramesh,
  It would have been helpful had you provided a bit of detail about your
table structure, and some sample data...
(what you have now vs. what you'd like to see)

  If your data is similar to this...
Old      New
123      798
124      841
642      167
and you want...
Old      New
798      798
841      841
167     167
then an Update query that takes the value from New and replaces the Old value will do it.

Signature

hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."

> HI,
>
[quoted text clipped - 7 lines]
>
> Ramesh
scubadiver - 14 May 2007 16:07 GMT
Use an update query :-)

> HI,
>
[quoted text clipped - 9 lines]
>
> Ramesh
scubadiver - 14 May 2007 16:10 GMT
Ignore my previous message!

Why have two different fields?

> HI,
>
[quoted text clipped - 9 lines]
>
> Ramesh
 
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.