Results 1 to 2 of 2
  1. #1
    jsevilla is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    1

    Question Time Conversion

    I'm having a problem with time conversion.

    Scope: I have form that I'm using to track time for functions performed. So for each function I have a start and stop time field, both of these fields are defined as text in the table.

    Reason for this is my end user complained of difficulty in entering in times quickly when fields were set to date/time, with a short time format.



    I take the text field and use the TIMESERIAL function to convert to hours and minutes. (i.e. 0900 is converted to 9:00). Then I have a second text box that I use the DATEADD function to add the length of time in minutes allotted for that step. (i.e. 9:00 + 90minutes is 10:30)
    I then use conditional formatting on the start and stop fields to turn green if they are less than or equal to the time allotted or red if they go over.
    Problem: Everything works fine if all the times are in the same 24 hour period. If I have a step that goes from say 2300 (11pm) to 0030 (1230am), the conditional formatting doesn't work properly, always stays green, even if 0045 is entered as the stop time.
    Any help would be much appreciated.
    John

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

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

Similar Threads

  1. Replies: 6
    Last Post: 01-04-2011, 05:43 PM
  2. Access97 conversion to Access2010
    By jong in forum Access
    Replies: 3
    Last Post: 11-17-2010, 03:33 PM
  3. Data Type Conversion in Query
    By EHittner in forum Queries
    Replies: 3
    Last Post: 04-14-2010, 02:11 PM
  4. Conversion in Access table
    By Lucas83 in forum Access
    Replies: 1
    Last Post: 04-06-2010, 11:51 AM
  5. Conversion from Excel to Access
    By TMG in forum Import/Export Data
    Replies: 1
    Last Post: 10-20-2009, 12:48 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