Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1. Guest ji, please consider donating today!   Become a Supporter    ::   Make a Contribution   
    Monthly (Recurring) Target: $300 :: Achieved: $95

Date and Time Reporting

Discussion in 'Information Technology' started by Mike Hunt, Jul 28, 2006.

  1. Mike Hunt

    Mike Hunt
    Expand Collapse
    Guest

    I am accessing a POS System thru a ODBC Driver, the Transaction date and time
    are held in 2 fields in the POS System. I can concatenate the Date and Time
    in the following format 01/06/2006 5:49:03 PM with a query.

    When I try run the same query with selections between 01/06/2006 5:00:00 PM
    and 02/06/2006 2:30:00 AM. It will only display the 01/06/2006 transactions

    Can anybody help with this problem please?
     
  2. Loading...


  3. Arvin Meyer [MVP]

    Arvin Meyer [MVP]
    Expand Collapse
    Guest

    Save the query with the concatenated column. Open a new query using the new
    column from the first query. Remember that SQL is written in US Date format,
    (mm/dd/yy) so you'll need to write the second query like:

    Select * from Query1 Where Query1.NewDateField Between #6/1/06 5:00 PM# And
    #6/2/06 2:30 AM#;
    --
    Arvin Meyer, MCP, MVP
    Microsoft Access
    Free Access downloads
    http://www.datastrat.com
    http://www.mvps.org/access

    "Mike Hunt" <connect2@bigpond.com.nospam> wrote in message
    news:D68B2FD9-D8D8-41C0-8CEB-EF0C1D71EFCF@microsoft.com...
    >I am accessing a POS System thru a ODBC Driver, the Transaction date and
    >time
    > are held in 2 fields in the POS System. I can concatenate the Date and
    > Time
    > in the following format 01/06/2006 5:49:03 PM with a query.
    >
    > When I try run the same query with selections between 01/06/2006 5:00:00
    > PM
    > and 02/06/2006 2:30:00 AM. It will only display the 01/06/2006
    > transactions
    >
    > Can anybody help with this problem please?
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page