Solved

"Not Applicable" in a date field in Access

Posted on 2011-03-24
3
592 Views
Last Modified: 2012-06-21
I just had a request from a user in a database I developed.  The database keeps track of dates for  certain types of training.  When they run the report it shows blanks where there is no date entered.  If that training was not applicable to they would llike to be able to note that instead of having a blank field on the report. For example
name   training 1  training2  training 2
smith  01/01/01     na            05/05/10
Any ideas?
thanks
0
Comment
Question by:BOULMAN
3 Comments
 
LVL 1

Expert Comment

by:Muralidharand
ID: 35212903
have you tried anything with CONDITIONAL FORMATTING in MS Access.....
0
 
LVL 21

Accepted Solution

by:
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 500 total points
ID: 35212913
One way I have handled this is to use the date 1/1/1/1900 to mean N/A

So the control source for the text box would be something like:

=IIF([MyDate1] = #1/1/1900#, "N/A",[MyDate1])

or maybe

=IIF([MyDate1] = #1/1/1900#, "N/A",Format([MyDate1],"MM/DD/YYYY"))





0
 

Author Comment

by:BOULMAN
ID: 35212943
I think what I will do is convert the field to a text.  Then if they enter 01/01/1900 can have it converted to NA and still have the input mask setup with a date format.  
Thanks for heading me in the right direction!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
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.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

914 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

23 Experts available now in Live!

Get 1:1 Help Now