Results 1 to 2 of 2
  1. #1
    Sonyatwillis is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2013
    Posts
    1

    #type! error

    I have a field that contains two types of information; either a number (usually 111) or the word "RETEST". In my report I am trying to make the field for this print a "$" if it is a number and the word "RETEST" if it is not a number. I am using an unbound text box with the following code in the control source:



    =IIf([Payment Amount]>1,"$" & [Payment Amount],"RETEST")

    This works in as much that it puts the "$" in front of the number as requested, but for everything that is not a number, it says, "#type!". Any ideas on how to make this work?

    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
    52,902
    The table field is a text data type? Does the textbox have Format property set?

    Try:

    =IIf(IsNumeric([Payment Amount]), "$","") & [Payment Amount]
    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.

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

Similar Threads

  1. Replies: 7
    Last Post: 07-24-2013, 02:01 PM
  2. #Type Error
    By tomnsd in forum Reports
    Replies: 8
    Last Post: 07-16-2013, 11:22 PM
  3. Error: Run-time error '13' Type mismatch
    By uronmapu in forum Access
    Replies: 1
    Last Post: 09-07-2012, 05:38 AM
  4. Replies: 1
    Last Post: 05-11-2012, 10:59 AM
  5. Error 13 Type Mismatch error
    By GlennBurg in forum Programming
    Replies: 1
    Last Post: 06-21-2011, 03:05 AM

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