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

Tip: Looking for answers? Try searching our database.

Adding amount via update query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
djmills1@gmail.com - 27 Feb 2007 02:24 GMT
Is it possible to add/subtract the same number to different values
sected in a select query?

I have 10 records from a select query, and all have different prices.
I want to add $15 to all ten prices.

Best way, if any?
Damian S - 27 Feb 2007 03:01 GMT
Hi djmills1,

You could run an update query like this:

update TABLENAME set FIELDNAME = FIELNAME+15 where
WHERECLAUSE_FROM_SELECT_QUERY

Hope that helps.

Damian.

> Is it possible to add/subtract the same number to different values
> sected in a select query?
[quoted text clipped - 3 lines]
>
> Best way, if any?
 
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.