call times greater than 16:08

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I need to create a query with call times greater than 16:08 for "Time
Notified" and "Time Arrived to Scene" fields. What formula would I use for
that?
Thanks
 
vicky said:
Hi
I need to create a query with call times greater than 16:08 for "Time
Notified" and "Time Arrived to Scene" fields. What formula would I
use for that?

I have some questions:

1. Do you mean you want the query to return all records where the
interval between [Time Notified] and [Time Arrived to Scene] is greater
than 16:08?

2. Are [Time Notified] and [Time Arrived to Scene] the names of
date/time fields in the table?

3. When you say "16:08", is that hours:minutes, or minutes:seconds?
 
Sorry for being unclear
1. Yes, I mean i want the query to return all records where the interval
between [Time Notified] and [Time Arrived to Scene] is greater than 16:08
2. Yes, both of them are the names of data/time fields in the table in this
format "m/d/yyyy hh:mm:ss am/pm"
3. When i say 16:08 I mean minutes and seconds


Dirk Goldgar said:
vicky said:
Hi
I need to create a query with call times greater than 16:08 for "Time
Notified" and "Time Arrived to Scene" fields. What formula would I
use for that?

I have some questions:

1. Do you mean you want the query to return all records where the
interval between [Time Notified] and [Time Arrived to Scene] is greater
than 16:08?

2. Are [Time Notified] and [Time Arrived to Scene] the names of
date/time fields in the table?

3. When you say "16:08", is that hours:minutes, or minutes:seconds?


--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 
vicky said:
Sorry for being unclear
1. Yes, I mean i want the query to return all records where the
interval between [Time Notified] and [Time Arrived to Scene] is
greater than 16:08
2. Yes, both of them are the names of data/time fields in the table
in this format "m/d/yyyy hh:mm:ss am/pm"
3. When i say 16:08 I mean minutes and seconds


Dirk Goldgar said:
vicky said:
Hi
I need to create a query with call times greater than 16:08 for
"Time Notified" and "Time Arrived to Scene" fields. What formula
would I use for that?

I have some questions:

1. Do you mean you want the query to return all records where the
interval between [Time Notified] and [Time Arrived to Scene] is
greater than 16:08?

2. Are [Time Notified] and [Time Arrived to Scene] the names of
date/time fields in the table?

3. When you say "16:08", is that hours:minutes, or minutes:seconds?

Okay, then create a calculated field in your query like this:

ResponseTime: DateDiff("s", [Time Notified], [Time Arrived to
Scene])

That will return the difference in seconds between the two times. Then

That will return all records where the number of seconds between the two
times is greater than 968, which is (16 minures * 60 seconds/minute) + 8
seconds.
 
Thanks a lot, that worked
what if i wanted to know the difference in minutes between the same two
fields instead of seconds?
I know I have to switch "s" to "n" in my calculated field but what about the
criteria part?

Dirk Goldgar said:
vicky said:
Sorry for being unclear
1. Yes, I mean i want the query to return all records where the
interval between [Time Notified] and [Time Arrived to Scene] is
greater than 16:08
2. Yes, both of them are the names of data/time fields in the table
in this format "m/d/yyyy hh:mm:ss am/pm"
3. When i say 16:08 I mean minutes and seconds


Dirk Goldgar said:
Hi
I need to create a query with call times greater than 16:08 for
"Time Notified" and "Time Arrived to Scene" fields. What formula
would I use for that?

I have some questions:

1. Do you mean you want the query to return all records where the
interval between [Time Notified] and [Time Arrived to Scene] is
greater than 16:08?

2. Are [Time Notified] and [Time Arrived to Scene] the names of
date/time fields in the table?

3. When you say "16:08", is that hours:minutes, or minutes:seconds?

Okay, then create a calculated field in your query like this:

ResponseTime: DateDiff("s", [Time Notified], [Time Arrived to
Scene])

That will return the difference in seconds between the two times. Then

That will return all records where the number of seconds between the two
times is greater than 968, which is (16 minures * 60 seconds/minute) + 8
seconds.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 
Sorry I forgot to mention
16:08 is in hours and minutes now
thanks

Dirk Goldgar said:
vicky said:
Sorry for being unclear
1. Yes, I mean i want the query to return all records where the
interval between [Time Notified] and [Time Arrived to Scene] is
greater than 16:08
2. Yes, both of them are the names of data/time fields in the table
in this format "m/d/yyyy hh:mm:ss am/pm"
3. When i say 16:08 I mean minutes and seconds


Dirk Goldgar said:
Hi
I need to create a query with call times greater than 16:08 for
"Time Notified" and "Time Arrived to Scene" fields. What formula
would I use for that?

I have some questions:

1. Do you mean you want the query to return all records where the
interval between [Time Notified] and [Time Arrived to Scene] is
greater than 16:08?

2. Are [Time Notified] and [Time Arrived to Scene] the names of
date/time fields in the table?

3. When you say "16:08", is that hours:minutes, or minutes:seconds?

Okay, then create a calculated field in your query like this:

ResponseTime: DateDiff("s", [Time Notified], [Time Arrived to
Scene])

That will return the difference in seconds between the two times. Then

That will return all records where the number of seconds between the two
times is greater than 968, which is (16 minures * 60 seconds/minute) + 8
seconds.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 
Ok so now you can ignore my two last posts, I figured it out
Thanks a lot for your help again :)

vicky said:
Sorry I forgot to mention
16:08 is in hours and minutes now
thanks

Dirk Goldgar said:
vicky said:
Sorry for being unclear
1. Yes, I mean i want the query to return all records where the
interval between [Time Notified] and [Time Arrived to Scene] is
greater than 16:08
2. Yes, both of them are the names of data/time fields in the table
in this format "m/d/yyyy hh:mm:ss am/pm"
3. When i say 16:08 I mean minutes and seconds


:

Hi
I need to create a query with call times greater than 16:08 for
"Time Notified" and "Time Arrived to Scene" fields. What formula
would I use for that?

I have some questions:

1. Do you mean you want the query to return all records where the
interval between [Time Notified] and [Time Arrived to Scene] is
greater than 16:08?

2. Are [Time Notified] and [Time Arrived to Scene] the names of
date/time fields in the table?

3. When you say "16:08", is that hours:minutes, or minutes:seconds?

Okay, then create a calculated field in your query like this:

ResponseTime: DateDiff("s", [Time Notified], [Time Arrived to
Scene])

That will return the difference in seconds between the two times. Then

That will return all records where the number of seconds between the two
times is greater than 968, which is (16 minures * 60 seconds/minute) + 8
seconds.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top