Rohn-
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
(Paris, France)
On Jan 18, 2016, at 6:29 PM, reverson@maintainer.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
John,
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!
Rohn Everson
__._,_.___
Posted by: John Viescas <johnv@msn.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (8) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar