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

Tip: Looking for answers? Try searching our database.

Update Query Changing value to negative

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bookmdano - 17 Jul 2007 19:54 GMT
I am trying to use an update query to change values in a table to negative.
Any suggestions.
KARL DEWEY - 17 Jul 2007 20:40 GMT
Multiply by -1.
Signature

KARL DEWEY
Build a little - Test a little

> I am trying to use an update query to change values in a table to negative.
> Any suggestions.
Bookmdano - 17 Jul 2007 21:06 GMT
All values I need to change are different. Is there a special command or wild
card that I need to use to multiply different values by -1?

> Multiply by -1.
>
> > I am trying to use an update query to change values in a table to negative.
> > Any suggestions.
KARL DEWEY - 17 Jul 2007 21:34 GMT
Create a select query that pulls the records to be updated.  Run it and
review ( better yet is to backup the database first  ).
Say the your field is "GardenTops", so in the design view of the query,
click on the icon that looks like two datasheets with a down arrowhead to the
right. Select Update Query.
In the Update To row put this ---
      [GardenTops] * -1
If you have some that are negative now and do not want to change to a
positive number then add criteria of >0  (greater than zero),

It will multiply all seleced records by -1 and replace what is there.
Signature

KARL DEWEY
Build a little - Test a little

> All values I need to change are different. Is there a special command or wild
> card that I need to use to multiply different values by -1?
[quoted text clipped - 3 lines]
> > > I am trying to use an update query to change values in a table to negative.
> > > Any suggestions.
 
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.