Solved

easy one (I hope): detecting null date value in combo box

Posted on 2012-04-02
5
274 Views
Last Modified: 2012-04-03
Dear experts:
I have a combo box in a continuous form; one of its columns (index=7) contains an approval date, which may either be populated or null.
I am using conditional formatting on another field in the same record.
It is choking on the expression I am using to detect if that date is there or not.
I am using this:
 Nz([Form]![cbopart_id].[column](7),0)<>0
Any ideas?
Thanks!
0
Comment
Question by:terpsichore
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 37799099
Try this:

Expression Is:  [cbopart_id].column(7)=""
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37799109
works fine for me here...

I am sure you can modify this to work in your db...
Database59.mdb
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 37799153
Hmmm, I'm not sure why that wouldn't work for you.  Unless you're really referring to column 6 since the first column starts at 0.
0
 
LVL 51

Expert Comment

by:Gustav Brock
ID: 37799695
Nz([Form]![cbopart_id].[column](7),0)<>0

does not work because values from comboboxes always are strings. Thus, Nz makes no sense here, and also the value would never be 0 but "0".

Jeffrey provided the solution. Alternatively, if you like:

Len([Form]![cbopart_id].[column](7))=0

/gustav
0
 

Author Closing Comment

by:terpsichore
ID: 37803701
thanks - you guys/gals were extremely helpful.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

634 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