Results 1 to 3 of 3
  1. #1
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618

    Dlookup returning #Error

    I don't get what I am missing. On the images it can be seen that I linked three queries, which have the id field in common. Query q04SalesPrice03 has 8 records and it shows fine in the linked query. I need the same from the other query q04CogsUnitPrice02. Query q01CombinedEntity keeps all entities. q04CogsUnitPrice02 returns #Error for the records in q01CombinedEntity that has no record in q04CogsUnitPrice02. If I use Nz(Dlookup("ActualSalesPrice011","q04CogsUnitPrice 02","IntItmID011 ="& CmbEntID001),0) the same happens. I adde a 4th query which returns the same. If there is a record the amount is correct, if no record then #error. I wonder why one query links fine the other two not?
    Click image for larger version. 

Name:	SalesPrice10.png 
Views:	10 
Size:	55.5 KB 
ID:	41502Click image for larger version. 

Name:	SalesPrice09.png 
Views:	10 
Size:	23.8 KB 
ID:	41501
    Last edited by Perfac; 04-08-2020 at 08:59 PM. Reason: Add something

  2. #2
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    Nz(Dlookup("ActualSalesPrice011","q04CogsUnitPrice 02","IntItmID011 ="& CmbEntID001),0)

    OR

    Nz(Dlookup("ActualSalesPrice011","q04CogsUnitPrice02","IntItmID011 ="& CmbEntID001),0)

    ???

  3. #3
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    Hmmme. O shit. Thank you.

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

Similar Threads

  1. dlookup returning #Type!
    By pyromaniac511 in forum Forms
    Replies: 9
    Last Post: 06-21-2016, 10:28 AM
  2. DLookup returning #Error
    By apk19 in forum Forms
    Replies: 8
    Last Post: 12-15-2015, 03:26 AM
  3. DLookUp Not Returning Anything
    By Bkper087 in forum Access
    Replies: 5
    Last Post: 04-08-2015, 11:54 AM
  4. Replies: 3
    Last Post: 08-08-2012, 08:04 AM
  5. Dlookup returning #Error
    By ozziestockton in forum Forms
    Replies: 4
    Last Post: 07-30-2012, 10:53 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