Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 2nd, 2007, 11:16 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Corey
Default Making a number negative

Hi again everyone,

I'm working on being able to subtract the cost of returns against the cost of shipping.

The formula would go something like this

Program ID: IIf([REPORTING_STATE_TYPE]=RETURN_RECEIPT,”make the number a negative”, ([REPORTING_STATE_TYPE])


Thanks for your Help
 
Old February 2nd, 2007, 11:48 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Do you want to permanently make the number negative? That is not necessary. Just use subtraction in your code or query formula.

What is the function or subroutine you are using with this code?



mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace the cells having negative value yogeshyl Excel VBA 4 April 29th, 2016 01:43 PM
Index was out of range. Must be non-negative raghavendra_das ASP.NET 2.0 Professional 0 July 24th, 2008 08:16 AM
Index 0 is not non-negative! ktsis ASP.NET 1.0 and 1.1 Basics 1 July 5th, 2006 09:00 PM
negative number returned when subtracting gavmc Classic ASP Basics 2 November 29th, 2005 06:34 AM
SUM operator returns a negative number cdias XSLT 7 December 31st, 2004 05:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.