Solved

"Not Applicable" in a date field in Access

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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

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.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
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