Solved

Another isnull syntax issue

Posted on 2014-12-17
2
107 Views
Last Modified: 2014-12-17
I am getting #Error on a form using this control source syntax:

=IIf(IsNull([txtDayOfWeek]),"",DLookUp("[DayOfWeek]","tblFacilities","[ID] = " & [Forms]![frmPatientVisitsNew]![txtFacilityID]))


???
0
Comment
Question by:SteveL13
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
Comment Utility
Steve,

 Need:

=IIf(IsNull(Me.[txtDayOfWeek]),"",DLookUp("[DayOfWeek]","tblFacilities","[ID] = " & [Forms]![frmPatientVisitsNew]![txtFacilityID]))

 or depending on where your using this, a full form reference like you have for the Facility ID ([Forms]![<form name>]![<control or field name>]

Jim
0
 

Author Comment

by:SteveL13
Comment Utility
That did it.  

=IIf(IsNull(Me.[txtDayOfWeek]),"",DLookUp("[DayOfWeek]","tblFacilities","[ID] = " & [Forms]![frmPatientVisitsNew]![txtFacilityID]))

Thanks.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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

6 Experts available now in Live!

Get 1:1 Help Now