Results 1 to 3 of 3
  1. #1
    Bill Singh is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Location
    New York
    Posts
    3

    Switching the sign of a text box value on a report

    Hi All - i have a textbox in a report that has a negative value but i would like to display it as a positive value. In other words i would like to change the sign on the report but not in the underlying query. Below is what i have



    Current text in the textbox: Sumof2014Month

    I tried: =[sumof2014Month] * -1

    Result: Error message "Invalid Control Property: Control Source and Circular Reference.

    Can someone please suggest the correct format/method of doing this? Thanks.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Try Abs() function.

    Make sure controls do not have same name as field referenced in their ControlSource expression.

    Change name of the textbox to something like: tbxSum2014
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Bill Singh is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Location
    New York
    Posts
    3
    The issue was relating to the textbox name and the underlying control source being the same. Many thanks.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Switching to number from text
    By ChristopherL in forum Access
    Replies: 2
    Last Post: 07-01-2013, 03:27 AM
  2. Sign Out and Sign In Student Database
    By jamiers in forum Forms
    Replies: 6
    Last Post: 08-29-2012, 02:03 PM
  3. Switching Values in text box????
    By reidn in forum Forms
    Replies: 2
    Last Post: 07-08-2011, 02:04 PM
  4. Pound sign in text field
    By eww in forum Programming
    Replies: 3
    Last Post: 09-29-2010, 10:30 AM
  5. Field switching from Number format to Text
    By COforlife in forum Queries
    Replies: 1
    Last Post: 11-10-2009, 03:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums