Results 1 to 8 of 8
  1. #1
    gatsby is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    114

    Should Appear Blank

    Hello everyone,

    im having a problem about my DBS. there is a calculation in the Query then amount or total will appear in the Form. there are some items that doesnt have information in the Table, so obviously calculation wont be involve in that specific item. now, if theres no information to be calculated unbound box SHOULD be blank BUT in every items that doesnt involve a calculation it appear this error ----> #Type!

    i want to eliminate that one and make the unbound box to appear blank instead of #Type!

    because people might think that is really an error when in fact it will just appear because no calculation took place.

    Thanks!

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    How about a If IsNull statement or using Nz in your code?

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Post the query SQL statement. Simple arithmetic calculation with null should result in null.
    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.

  4. #4
    gatsby is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    114
    I placed that code in the Query's criteria:

    =IsNull([Total Cost])

    But still it gives me #Type!

    in the Form, I placed this --> =CLng(Nz([Total Cost].[column](21),0))

    please correct me if im wrong. Thanks.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    That IsNull expression should return just True or False regardless of value of [Total Cost].

    Why would you put that expression in criteria? What are you trying to do?

    That error is due to datatype mismatch. You have a combobox with 20 or more columns?

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  6. #6
    gatsby is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    114
    its edited and heres what i replaced:

    Total Cost: Nz([Base Cost],"")+Nz([Contingency Amount],"")

    so far, its giving me 0 (zero) value not #Type!

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Is that good? Issue resolved?
    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.

  8. #8
    gatsby is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    114
    i guess so, i will settle with 0 (zero) for now than having #Type! message in an unbound box.

    Thanks.

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

Similar Threads

  1. Getting rid of blank labels
    By eskybel in forum Reports
    Replies: 1
    Last Post: 06-28-2012, 07:52 AM
  2. no blank fields
    By imintrouble in forum Forms
    Replies: 2
    Last Post: 10-24-2011, 10:21 AM
  3. New Blank Database
    By 12many in forum Access
    Replies: 5
    Last Post: 09-23-2011, 05:12 PM
  4. Replies: 4
    Last Post: 05-11-2011, 03:06 AM
  5. Replies: 1
    Last Post: 09-05-2008, 12:07 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