473,402 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Query for minutes

I wrote a little app that finds how long the duration of a phone call
was when the user enters the start and end time of the phone call. My
question is how do I query the results of this? It's stored in the
database as 00:11, 00:15, etc, but it won't let me query as >10,
00:10, etc. I just need to be able to pull all the calls that are more

than 10 minutes. Ideas?

Nov 13 '05 #1
2 1533
You'll need to change the formatting of your time field, as what happens
when a call is 125 minutes long? That should allow you to query on integer
values.

BTW, it's usually not a good idea to store calculations. You can use
DateDiff("n",[starttime],[endtime]) to calculate the call time in minutes
anytime you need to show it in forms/reports.

-Ed

<wb*****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I wrote a little app that finds how long the duration of a phone call
was when the user enters the start and end time of the phone call. My
question is how do I query the results of this? It's stored in the
database as 00:11, 00:15, etc, but it won't let me query as >10,
00:10, etc. I just need to be able to pull all the calls that are more

than 10 minutes. Ideas?

Nov 13 '05 #2
You have a pair of Date/Time fields in your table?

You could create a query into this table, and type something like this into
a fresh column of the Field row to show the duration of the call in whole
minutes:
Minutes: DateDiff("n", [Start Time], [End Time])
You can then use the Criteria row under this calculated field.

More information:
Calculating elapsed time
at:
http://allenbrowne.com/casu-13.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<wb*****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I wrote a little app that finds how long the duration of a phone call
was when the user enters the start and end time of the phone call. My
question is how do I query the results of this? It's stored in the
database as 00:11, 00:15, etc, but it won't let me query as >10,
00:10, etc. I just need to be able to pull all the calls that are more

than 10 minutes. Ideas?

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Brian Oster | last post by:
After applying security patch MS03-031 (Sql server ver 8.00.818) a query that used to execute in under 2 seconds, now takes over 8 Minutes to complete. Any ideas on what the heck might be going...
4
by: Gary | last post by:
I am having a problem executing long running queries from an ASP application which connects to SQL Server 2000. Basically, I have batches of queries that are run using ADO in a loop written in...
2
by: Justin Koivisto | last post by:
In PHP, I do the following (pseudo code for clarity)... Query: SELECT distinct(web_contacts.zip) FROM web_contacts WHERE web_contacts.zip <> '' Query: SELECT DISTINCT(contacts.zip) FROM contacts...
4
by: Stephen Young | last post by:
Hello Have a bit of a problem, im trying to get the total number of hours:minutes for all actions over the month in a query, have tried two methods to no luck... Duration This Month:...
0
by: hismail | last post by:
I am creating a vb.net service that will run AS SERVICE. There is actually a timer; so the timer will run every 2 minutes and see if there are any new ERROR type logs in the APPLICATION logs. And...
0
by: hismail | last post by:
1. hism...@dot-solution.net Aug 16, 2:51 pm show options Newsgroups: microsoft.public.vb.general.discussion From: hism...@dot-solution.net - Find messages by this author Date: 16 Aug 2005...
3
blyxx86
by: blyxx86 | last post by:
I have created a form that keeps record of a few queries that are ran. One set of queries takes 30 minutes to pull the information. The other takes about 6 minutes. I managed to use two...
2
by: WuBin | last post by:
Hi, I have a GridVew and a sqlDtaSurce control in ASP.NET real-time page. The sqlDtaSurce control use a complicated query to load data from a SQL database. This real-time page is reloaded by...
2
by: existential.philosophy | last post by:
This is a new problem for me: I have some queries that open very slowly in design view. My benchmark query takes about 20 minutes to open in design view. That same query takes about 20 minutes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.