• First and Last timestamp for each day

    Author
    Topic
    #462636

    I have an database used in a small bookstore for sales/inventory. Punctuality was an issue, so I created a table that would time stamp when the database was opened and closed.

    I have a table that has 2 columns, both are Date/Time fields like “9/18/2009 5:15:49 PM” where one is named “Started” and one is named “Ended”. If a row has a Started, it will have no Ended and vice versa.

    I need to have a query that shows the earliest Started and the latest Ended for each day. (Did they arrive on time and did they leave early?)

    Any suggestions?

    Thanks!

    Viewing 0 reply threads
    Author
    Replies
    • #1178209

      Create two queries. One to calculate the Min Start time by date and the other to calculate the Max End time by date. Link the two queries by date. See attached (qryMinMax shows the final results):

      • #1178213

        Create two queries. One to calculate the Min Start time by date and the other to calculate the Max End time by date. Link the two queries by date. See attached (qryMinMax shows the final results):

        This worked like a charm, thanks!

    Viewing 0 reply threads
    Reply To: Reply #1178213 in First and Last timestamp for each day

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel