Results 1 to 6 of 6
  1. #1
    madrag is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2014
    Posts
    3

    Unhappy Unix time stamp date and criteria

    Hello,

    I need help I have DB with Unix time stamp field. I was able to convert this to date format with Time: DateAdd('s',[ARRIVAL_TIME],#1/1/1970#) calculation.
    However i can't find a way to put "filter" in Criteria row in query design. I would like to achieve posibility to pick start date and end date and get rows from DB between those two.



    HELP PLS !!!
    Last edited by June7; 12-12-2014 at 01:59 PM.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I don't understand. If the query has correct date structure then the filter criteria should be the same.

    BETWEEN #1/1/1970# AND #12/31/1970#

    BETWEEN [enter start] AND [enter end]
    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
    madrag is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2014
    Posts
    3
    Thx for anwser - yes i was playing with that but i'm doing something wrong seems so...
    So again. I have this ARRIVAL_TIME field in DB which holds time in UNIX time stamp. In Access I'm using convert calculation as above.
    What are possibilities to debug this and find out what i'm doing wrong?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Exactly what is not working - error message, wrong results, nothing happens?

    I've never had to deal with Unix time. But what I find indicates your expression should work, unless your timestamps are including hh:mm:ss. Your filter parameters do not include those units.


    Here is another calc:
    Format(([unixdate]+2209161600)/86400,"dd/mm/yy hh:nn:ss")
    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
    madrag is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2014
    Posts
    3
    Thx aagain for your time.
    What is not working is that after I put parameters in here - BETWEEN [enter start] AND [enter end] - my query do not return results - table is empty.
    Maybe I'm putting in wrong parameters formats...?
    When I'm not using any Criterias i'm getting format as here:
    ARRIVALTIME
    21/11/2005 14:01:26
    edit:
    Just made query with criterias and i get results which seems ignored somehow this...
    edit 2:
    seems i've meade it - was entering dates in wrong format - it has to be mm/dd/yyyy
    Last edited by madrag; 12-15-2014 at 03:33 AM.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Glad you have a solution. You might find this of interest http://allenbrowne.com/ser-36.html
    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. Date/Time Stamp on barcode input form
    By computersnack in forum Access
    Replies: 3
    Last Post: 04-30-2014, 07:11 PM
  2. Column history - date and time stamp
    By Hatye in forum Access
    Replies: 5
    Last Post: 11-15-2013, 01:26 PM
  3. Replies: 3
    Last Post: 12-10-2012, 05:14 PM
  4. Date and Time Stamp
    By zoooza84 in forum Access
    Replies: 2
    Last Post: 08-06-2011, 04:53 AM
  5. Replies: 4
    Last Post: 01-30-2010, 05:22 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