Results 1 to 3 of 3
  1. #1
    gaker10 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2014
    Posts
    262

    Hide/Replace numeric value with text value


    I figured this was pretty simple, but I suppose not because I cannot figure it out nor find anything on this topic.

    In my table, I have a field called PriceBreakEnd. When the user enters -1, that is a user defined value meaning an indeterminate amount. I generate a report based on a query I have, and this field is in my report. But, instead of displaying -1 for applicable records, I want it to say * instead for the report only, because it is a more intuitive/universal symbol for an indeterminate amount. PriceBreakEnd is formatted as a number. I've tried some code and Validation to no avail.

    Is this possible to do or no?

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    In the query, add a field having value IIf([PriceBreakEnd]=-1,"*",[PriceBreakEnd])
    or
    In the report, hide the txtbox showing PriceBreakEnd ( say txtPriceBreakEnd )and use another text box with =IIf([txtPriceBreakEnd]=-1,"*",txt[PriceBreakEnd]) as control source

  3. #3
    gaker10 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2014
    Posts
    262
    The second suggestion was perfect!

    Thank you!

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

Similar Threads

  1. Convert text to numeric value
    By Natella in forum Programming
    Replies: 4
    Last Post: 11-11-2013, 02:55 PM
  2. Crosstab results: Numeric vs Text
    By FormerJarHead in forum Queries
    Replies: 1
    Last Post: 05-09-2013, 02:39 PM
  3. Replies: 2
    Last Post: 07-21-2012, 01:21 AM
  4. Numeric vs. Text
    By Niki in forum Access
    Replies: 4
    Last Post: 06-10-2011, 01:28 AM
  5. Justify numeric text field
    By tpcervelo in forum Queries
    Replies: 2
    Last Post: 01-27-2011, 03:50 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