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 / November 2005

Tip: Looking for answers? Try searching our database.

Changing a numbers sign in a query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe Cilinceon - 06 Nov 2005 17:14 GMT
What I have is a query on Charges. Now I want to change a sign from + to -
based on the ChgID # in that field.

--

Joe Cilinceon
fredg - 06 Nov 2005 17:36 GMT
> What I have is a query on Charges. Now I want to change a sign from + to -
> based on the ChgID # in that field.

IIf([ChgID]=somecriteria,[Charges] * -1,[Charges])
Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Joe Cilinceon - 06 Nov 2005 19:06 GMT
>> What I have is a query on Charges. Now I want to change a sign from
>> + to - based on the ChgID # in that field.
>
> IIf([ChgID]=somecriteria,[Charges] * -1,[Charges])

Thanks fredg that worked good. I've had brain lock today and for some reason
I just couldn't figure out how to do it, simple as it is.

Signature

Joe Cilinceon

 
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.