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
Solved

"Not Applicable" in a date field in Access

Posted on 2011-03-24
3
619 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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