Solved

Another isnull syntax issue

Posted on 2014-12-17
2
111 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
ID: 40505132
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
ID: 40505142
That did it.  

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

Thanks.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…

815 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

7 Experts available now in Live!

Get 1:1 Help Now