Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2016
    Posts
    8

    Unanswered: How to remove #Eerror in query

    Hi Guys,

    I am creating a new query pulling data from [tbl_Product] and subquery [qry_LatestProductPrice] with outer join to populate all records from [tbl_Product].

    [tbl_Product] = ProductID
    [qry_LatestProductPrice] = Price

    For the blank record in qry_LatestProductPrice, it will display #Error in the Price column.

    My question is how to remove the #Error in the blank record or is there any problem with my query.

    I have tried IIf(IsNull([Price],0,[Price]) and IIf([Price]=0,0,[Price]) but it is not working.

    I hope you guys could help me solve the problem.

    Thank you.
    tserhung

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,482
    Provided Answers: 11
    have you tried NZ()
    hope this help

    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
    DONT WORRY ABOUT THOSE WHO TALK BEHIND YOUR BACK
    THEY'RE BEHIND YOU FOR A REASON

  3. #3
    Join Date
    Mar 2016
    Posts
    8
    Quote Originally Posted by myle View Post
    have you tried NZ()
    Hi Myle,

    I've tried Nz() but not working as well.

    Any ideas?

    Thank you
    tserhung

  4. #4
    Join Date
    Mar 2016
    Posts
    8
    Hi Myle,

    I have solve the problem. I should have enter NZ() in my first query not my subquery. This has solve the problem.

    Thank you.
    tserhung

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •