473,407 Members | 2,359 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,407 software developers and data experts.

Time isn't on my side

I have a field in a query that shows various times stored in a table
(7:40 PM, 8:10 AM, etc.). I want to create an expression in another
field in the query that will add 10 minutes to each time from the
first field. So when I run the query I will have 2 columns. Column 1:
7:40 PM, 8:10 AM and Column 2: 7:50 PM, 8:20 AM. I know it must be
simple but I can't write an expression that works right.
Thanks
Nov 13 '05 #1
3 1028
What do you ant to do if the time in the first column is between 11:50PM and
1159 PM? Adding 10 minutes will take you into the next day.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"Steve M" <st****@crprod.com> wrote in message
news:de**************************@posting.google.c om...
I have a field in a query that shows various times stored in a table
(7:40 PM, 8:10 AM, etc.). I want to create an expression in another
field in the query that will add 10 minutes to each time from the
first field. So when I run the query I will have 2 columns. Column 1:
7:40 PM, 8:10 AM and Column 2: 7:50 PM, 8:20 AM. I know it must be
simple but I can't write an expression that works right.
Thanks

Nov 13 '05 #2
Assuming the field is called StartTime, and you want the calculated field
called EndTime, type this into the Field row of the query design grid:

EndDate: DateAdd("n", 10, [StartTime])

Be sure to use N for miNutes. M adds months.

--
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.

"Steve M" <st****@crprod.com> wrote in message
news:de**************************@posting.google.c om...
I have a field in a query that shows various times stored in a table
(7:40 PM, 8:10 AM, etc.). I want to create an expression in another
field in the query that will add 10 minutes to each time from the
first field. So when I run the query I will have 2 columns. Column 1:
7:40 PM, 8:10 AM and Column 2: 7:50 PM, 8:20 AM. I know it must be
simple but I can't write an expression that works right.
Thanks

Nov 13 '05 #3
Thanks, I think I see where the mistake was in my expression. I will
try this when I get to work.
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message news:<40**********************@per-qv1-newsreader-01.iinet.net.au>...
Assuming the field is called StartTime, and you want the calculated field
called EndTime, type this into the Field row of the query design grid:

EndDate: DateAdd("n", 10, [StartTime])

Be sure to use N for miNutes. M adds months.

--
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.

"Steve M" <st****@crprod.com> wrote in message
news:de**************************@posting.google.c om...
I have a field in a query that shows various times stored in a table
(7:40 PM, 8:10 AM, etc.). I want to create an expression in another
field in the query that will add 10 minutes to each time from the
first field. So when I run the query I will have 2 columns. Column 1:
7:40 PM, 8:10 AM and Column 2: 7:50 PM, 8:20 AM. I know it must be
simple but I can't write an expression that works right.
Thanks

Nov 13 '05 #4

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

Similar topics

5
by: c | last post by:
So far it looks like we have these options for calling our java based API from a .NET application: 1) http://www.jnbridge.com, about $500 per machine/developer 2) re-write java app in Visual...
25
by: Neil Ginsberg | last post by:
A while back I posted a message re. using an ADP file with a SQL Server back end as opposed to MDB file with linked tables, thinking that the ADP file would be less problematic. The input I got was...
74
by: Dominik Wallner | last post by:
Hi! I'm currently implementing a program which measures voltages through an external USB-AD-converter. It should output those values as time/voltage pairs. My problem is to measure the time...
13
by: Jim Carlock | last post by:
I have over a hundred pictures I would like to present. Is it practical to create and parse an array of pictures, picture paths, et al using server-side scripting to accomplish this? I...
23
by: mosesdinakaran | last post by:
Hi All, I need a small clarification in submitting the forms, Ur suggestions please. In a page I have two form and also two submit butons. (ie)
9
by: None | last post by:
Hi, I'm facing a problem with static instances. I have created a class called CustomList by deriving the class List<int>. Inside the CustomList i have created Remove event (when any item is...
130
by: Gianni Mariani | last post by:
Attached example CPP files makes it easier to post code and extract code from posts. It's unimaginable at this time where virtually any news reader is capable of dealing with attachments to stick...
15
jeffbroodwar
by: jeffbroodwar | last post by:
Hi everyone, Take a look at this problem. try to answer this program using a single class... : Problem 1: CD Dubbing Optimization A feature now becoming available on some compact disc...
12
by: Bob Bedford | last post by:
I've to build a website where the customer can buy an image. I'm thinking in the 2 ways to let people get those images: receive them by Email or send them an image link wich validity is limited in...
21
by: puzzlecracker | last post by:
Problem: I send a lot of requests to the application (running on a different box, of course), and I receive back responses from the app . Below: socket corresponds to Socket socket=new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.