Results 1 to 6 of 6
  1. #1
    kdbailey is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2012
    Posts
    228

    Formatting Long Date


    I have a field that tracks date and time of an occurrence. "m/d/yyyy h:mm:ss AM/PM"

    Why can I not format this field to display "m/d/yyyy" for specific purpose or use datediff() or dateadd()?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    If I had to guess, it's a text field rather than a date/time field. Try using CDate() on it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    kdbailey is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2012
    Posts
    228
    The field is date, I can't even filter the field using a criteria of "<=dateadd('d',-30,now())"

    I can query it for a specific date or <= a specific date, etc. But nothing involving dateadd.

  4. #4
    kdbailey is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2012
    Posts
    228
    Can't even filter <now().

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Can you post the db here, or a representative sample?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    kdbailey is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2012
    Posts
    228
    I actually believe the database is corrupted somehow, it won't allow me to compact, it won't compile the basic formulas. I'm trying to find what caused it.

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

Similar Threads

  1. Replies: 3
    Last Post: 12-02-2014, 07:58 PM
  2. Simple Date formatting
    By GraeagleBill in forum Forms
    Replies: 4
    Last Post: 08-21-2014, 12:27 PM
  3. Date/Time Formatting
    By cuddles in forum Access
    Replies: 5
    Last Post: 06-11-2014, 02:44 PM
  4. Date Conditional Formatting
    By f15avionics in forum Access
    Replies: 3
    Last Post: 09-21-2012, 04:45 AM
  5. Formatting a date
    By NISMOJim in forum Queries
    Replies: 7
    Last Post: 09-17-2010, 05:44 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