Solved

Dlookup and where condition

Posted on 2016-10-02
3
33 Views
Last Modified: 2016-10-02
Hello, I have an error at the end of the statement.  I need to return or [AvailableUSD_Equiv] for where FACID = 16.  I have tried brackets, quotes and no quotes or brackets and with an with the "&" as well.  Ran out of options.  
Thank you for the help.  

=DLookUp("[AvailableUSD_Equiv]","QryBal2_Works","[FacID]=" 16)


thank you
0
Comment
Question by:pdvsa
3 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41825564
Hi,

pls try
=DLookUp("[AvailableUSD_Equiv]","QryBal2_Works","[FacID] = 16")

Open in new window

Regards
0
 
LVL 22

Expert Comment

by:Kelvin Sparks
ID: 41825567
Try

=DLookUp("[AvailableUSD_Equiv]","QryBal2_Works","[FacID]= 16")

I assume that FacID is a numeric datatype - check it's source table in the query. If a test datatype then it would be

=DLookUp("[AvailableUSD_Equiv]","QryBal2_Works","[FacID]= '16'")

Kelvin
0
 

Author Closing Comment

by:pdvsa
ID: 41825572
perfect.  thank you.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now