Results 1 to 6 of 6
  1. #1
    Bdowns is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2012
    Posts
    28

    Time format problem

    We have a machine that automatically pulls a time code off a video. Unfortunately, in addition to the time, it pulls the frame as well so that the format is as follows:

    hh:mm:ss:ff



    We have tried creating a custom time format but have had zero success. We could enter it as a text field, but if at all possible would prefer it to be a time field.

    Is there any way to get access to recognize the above format as a time code or to automatically cut off the frames (since we don't really care about them)?

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    The parts will always be two characters each? Is it 24-hour clock time? How are you getting the value into Access table? This will drop the frame code and convert to AM/PM:
    CDate(Left(x, 8))
    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
    Bdowns is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2012
    Posts
    28
    It is 24 hour clock-time, which is how we would like it to be. We input the time value into access using a time code wedge which is a device that reads the time encoded in an audio signal from video. When you press the Time Code button, it enters hh:nn:ss:ff; where ff is the frame (the video records 30 fps). Ultimately, we would like access to keep the 24-hour clock, but cut off the frame. Suggestions? Thanks

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    The Time Code button is where - an Access form? Can you program the code behind it to use Left(x, 8)?
    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.

  5. #5
    Bdowns is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2012
    Posts
    28
    The Time code button is on this device: http://www.pro-sound.com/Merchant2/m...ry_Code=horita. The device reads an audio signal with an embedded time code. We use it for logging the time at which an organism was recorded by a camera on our remotely operated vehicle.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Where is the code that says 'save this time value to this field in this Access table in this Access file'? What controls the communication between the device and Access file? If Access has control, how does it know to 'grab' this time code? Do you position cursor into textbox on form and then click the Time Code button on the device? I have no experience with data input devices other than mouse and keyboard but I think that is how a barcode scanner works.

    I suspect will have to use code in some event (textbox AfterUpdate, form Close) that will correct the captured time value.

    Doesn't matter if you enter value as AM/PM or 24-hour, Access will display as AM/PM in a Date/Time datatype field unless you apply a format to the field to display differently. Format setting does not change the value.
    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.

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

Similar Threads

  1. Report Format Problem
    By JMPadilla in forum Reports
    Replies: 1
    Last Post: 11-28-2011, 03:42 PM
  2. Dealing with Short Time format
    By hawkins in forum Access
    Replies: 0
    Last Post: 08-16-2011, 11:46 AM
  3. Replies: 1
    Last Post: 08-07-2011, 07:58 AM
  4. Replies: 0
    Last Post: 02-28-2011, 10:26 PM
  5. Race Sports Time format
    By flebber in forum Database Design
    Replies: 0
    Last Post: 09-13-2009, 08:38 AM

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