You apparently want to test if the DLookup returns anything. If the lookup fails, DLookup will return a Null value. The IsNull function returns a True if the value is Null and False if the value is something else. Not IsNull is True when there is something returned.
John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications
SQL Queries for Mere Mortals
On Jan 18, 2016, at 6:29 PM, firstname.lastname@example.org [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
Great question about the variables! all I can say is "noob alert" I am still learning why access works like it does.
Your addition of "Not IsNull" worked.
Can you explain WHY the Not IsNull code works.
Thank you for your insights and help!
Posted by: John Viescas <email@example.com>
|Reply via web post||•||Reply to sender||•||Reply to group||•||Start a New Topic||•||Messages in this topic (8)|