Results 1 to 3 of 3
  1. #1
    JimO is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2015
    Posts
    126

    Conditional formating dates

    I have a list of dates and times, the value is set up as Date/Time. I want to display them in seperate columns one formated as date and the other as time. The issue I am having is that not all values have a 'valad' time and shoe up as a default value "12:00 AM". Is there a good way to hide only the default values?
    I have been unable to come up with any solution using conditional formating to blank out unwanted values (default).



    Any ideas?
    Thanks, Jim O

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Why would date/time not have a valid time? How were date/time saved? Midnight (12:00 AM) does not show time parts in unformatted field. Data will never have midnight time?

    Consider:

    IIf(Hour(x)=0,Null,TimeValue(x))
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    JimO is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2015
    Posts
    126
    That works great, thanks.
    I put this table together a few years ago ( from an Excel spreadsheet) before I knew enough not to do it the way I did, just trying to correct old errors.

    Again thanks for your input on this.
    Jim O

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Conditional Formating for Dates
    By JoeJr in forum Programming
    Replies: 1
    Last Post: 10-02-2019, 07:19 PM
  2. Conditional Formating
    By Derrick T. Davidson in forum Forms
    Replies: 5
    Last Post: 04-13-2013, 07:18 AM
  3. Conditional Formating
    By redbull in forum Reports
    Replies: 2
    Last Post: 03-26-2012, 12:08 PM
  4. Conditional Formating help
    By Mounds in forum Forms
    Replies: 2
    Last Post: 02-10-2012, 11:07 AM
  5. Conditional formating!
    By karanvemuri in forum Access
    Replies: 3
    Last Post: 10-29-2011, 03:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums