Solved

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

Posted on 2012-04-02
5
271 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
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 49

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

828 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