Results 1 to 3 of 3
  1. #1
    fatboymedic is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Location
    New York
    Posts
    3

    Trouble with date/time formatted as text...

    I have to generate a report, that among other things finds the AVERAGE of times listed in a field.. the problem is that the data that I have available comes from an excell sheet, AND a separate access table, where BOTH generate the times as a "general" or text field... ie: the cell or field shows "00:03:29" (HHMMSS) but its NOT a date/time format, its the aforementioned general, or text... I have tried changing the format on the original sheet/table without success. Is there a way to convert the text to date/time????



    example:

    date received response at customer
    1/1/12 00:01:12 00:01:30 00:01:47
    1/1/12 03:15:01 03:30:59 03:51:12

    -> I need to calculate the average response, but cant create the expression in a query OR report because the times are formatted as text, and simply changing the field format doesnt work....

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    I think that you may have some luck using the CDATE and TimeValue functions.

    http://www.techonthenet.com/access/f...type/cdate.php

    http://www.techonthenet.com/access/f.../timevalue.php

  3. #3
    fatboymedic is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Location
    New York
    Posts
    3
    Thank You!!

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

Similar Threads

  1. Replies: 3
    Last Post: 09-19-2012, 08:59 AM
  2. Replies: 5
    Last Post: 06-23-2012, 04:30 PM
  3. Replies: 4
    Last Post: 03-23-2012, 01:18 PM
  4. Replies: 12
    Last Post: 02-22-2011, 03:39 PM
  5. Replies: 6
    Last Post: 01-04-2011, 05:43 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