Solved

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

Posted on 2012-04-02
5
272 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 50

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA 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…

734 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