Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old February 21st, 2006, 08:45 PM
bob.hughes@fns.usda.gov
Guest
 
Posts: n/a
Default Trying to sort transactions by time

I'm trying to write a query that will find multiple transactions that
take place within a pre-determined time limit. I can easily compute
the time between adjacent transactions and then judge whether they fall
within the time limit, but I can't figure out a way to do this for
three or more transactions. Does anybody know how to do this?




  #2  
Old February 22nd, 2006, 01:35 AM
Bob Quintal
Guest
 
Posts: n/a
Default Re: Trying to sort transactions by time

bob.hughes@fns.usda.gov wrote in
news:1140553805.916300.226000@o13g2000cwo.googlegr oups.com:
[color=blue]
> I'm trying to write a query that will find multiple
> transactions that take place within a pre-determined time
> limit. I can easily compute the time between adjacent
> transactions and then judge whether they fall within the time
> limit, but I can't figure out a way to do this for three or
> more transactions. Does anybody know how to do this?
>[/color]

Create a query that contains (at least) the following fields: 1)
PrimaryKey of table, 2)the time you wish to evaluate, 3)
calculated value of time + time limit.

Create a new query that takes your first, and the original
table.

Set the criteria for the time from the original table to
BETWEEN [query].[original time] AND [query].[calculated time]

Run the query. see the results.


--
Bob Quintal

PA is y I've altered my email address.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.