Hello:
I´m not a professional programer in Access. I´m working in a proyect
that will permit me add my flight time, but I have been having
problems with the time adding.
Please can some one gve me a clue to how i can add time that exceeds
24 hours (Eg. 500:47)
Thans a lot
Nicolas Mejia 5 4745
Hi Nicolas
Don't use a Date data type for your field. This is for recording a specific
date/time, not an elapsed time. I suggest using a decimal data type and
entering your elapsed time as a fractional number (eg 1.5 hours) or as an
integer (eg 90 minutes). Get your users to enter it as 1.5 or 90 etc. If
necessary you may have to have it entered in two fields, hours and minutes
(e.g 1 hour and 30 minutes).
For reports, have a function for formatting it correctly. For example,
displaying 90 minutes as '1:30'.
Jeff Pritchard
_______________ _
Asken Research Pty. Ltd.
Access Database Developers www.asken.com.au
"Nicolas Mejia" <nm*****@hotmai l.com> wrote in message
news:8c******** *************** ***@posting.goo gle.com... Hello:
I´m not a professional programer in Access. I´m working in a proyect that will permit me add my flight time, but I have been having problems with the time adding.
Please can some one gve me a clue to how i can add time that exceeds 24 hours (Eg. 500:47)
Thans a lot
Nicolas Mejia
Hi all,
Like Nicolas, I am not a programmer but reading through the posts here
everyday, it seems that people can do pretty much anything they want with
the correct know-how and desire. It's been a long time since I was at school
so forgive me if I am not accurate but normal numbers are in base 10 (or
100) and time is in base 60? Is there not a way that the user can tell
Access to calculate a decimal data type in base 60?
Just a thought,
Mark
"Jeff" <je************ @asken.com.au> wrote in message
news:Lq******** *******@news.op tus.net.au... Hi Nicolas
Don't use a Date data type for your field. This is for recording a
specific date/time, not an elapsed time. I suggest using a decimal data type and entering your elapsed time as a fractional number (eg 1.5 hours) or as an integer (eg 90 minutes). Get your users to enter it as 1.5 or 90 etc. If necessary you may have to have it entered in two fields, hours and minutes (e.g 1 hour and 30 minutes).
For reports, have a function for formatting it correctly. For example, displaying 90 minutes as '1:30'.
Jeff Pritchard _______________ _ Asken Research Pty. Ltd. Access Database Developers www.asken.com.au
"Nicolas Mejia" <nm*****@hotmai l.com> wrote in message news:8c******** *************** ***@posting.goo gle.com... Hello:
I´m not a professional programer in Access. I´m working in a proyect that will permit me add my flight time, but I have been having problems with the time adding.
Please can some one gve me a clue to how i can add time that exceeds 24 hours (Eg. 500:47)
Thans a lot
Nicolas Mejia
As Jeff says don't use the Date function, try using the "\" and
"Mod" operators.
For example I have a form which shows music CD tracks; for each
track its length is entered as minutes and seconds in separate
fields. The query it is based on has a calculated field:
TrackLength: [tracklengthmin]*60+[tracklengthsec]
Total length is given in two controls on the form:
Minutes control source =Sum([tracklength])\60
Seconds control source =Sum([tracklength]) Mod 60
This isn't the same problem as yours but it could be modified to
give hours and minutes. nm*****@hotmail .com (Nicolas Mejia) wrote: Hello:
I´m not a professional programer in Access. I´m working in a proyect that will permit me add my flight time, but I have been having problems with the time adding.
Please can some one gve me a clue to how i can add time that exceeds 24 hours (Eg. 500:47)
Thans a lot
Nicolas Mejia
--
»«»«»« Graham »«»«»«
No. Not unless I have missed something here for a long time. But the code is
simple. This function below is air code but should work okay. You may want
to add error trapping.
Function FormatElapsedTi me(plngTotalMin s as long) as String
Dim lngHrs as Long, lngMns as Long, strTime as String
lngHrs = Int(plngTotalMi ns / 60)
lngMns = plngTotalMins Mod 60
strTime = Format(lngHrs, "00") & ":" & Format(lngMns, "00")
FormatElapsedTi me = strTime
End Function
Jeff Pritchard
_______________ _
Asken Research Pty. Ltd.
Access Database Developers www.asken.com.au
"Mark Reed" <ma*********@nt lworld.com> wrote in message
news:2USzc.20$A 74.9@newsfe1-win... Hi all, Like Nicolas, I am not a programmer but reading through the posts here everyday, it seems that people can do pretty much anything they want with the correct know-how and desire. It's been a long time since I was at
school so forgive me if I am not accurate but normal numbers are in base 10 (or 100) and time is in base 60? Is there not a way that the user can tell Access to calculate a decimal data type in base 60?
Just a thought,
Mark
"Jeff" <je************ @asken.com.au> wrote in message news:Lq******** *******@news.op tus.net.au... Hi Nicolas
Don't use a Date data type for your field. This is for recording a specific date/time, not an elapsed time. I suggest using a decimal data type and entering your elapsed time as a fractional number (eg 1.5 hours) or as
an integer (eg 90 minutes). Get your users to enter it as 1.5 or 90 etc. If necessary you may have to have it entered in two fields, hours and
minutes (e.g 1 hour and 30 minutes).
For reports, have a function for formatting it correctly. For example, displaying 90 minutes as '1:30'.
Jeff Pritchard _______________ _ Asken Research Pty. Ltd. Access Database Developers www.asken.com.au
"Nicolas Mejia" <nm*****@hotmai l.com> wrote in message news:8c******** *************** ***@posting.goo gle.com... Hello:
I´m not a professional programer in Access. I´m working in a proyect that will permit me add my flight time, but I have been having problems with the time adding.
Please can some one gve me a clue to how i can add time that exceeds 24 hours (Eg. 500:47)
Thans a lot
Nicolas Mejia
"Nicolas Mejia" <nm*****@hotmai l.com> wrote in message
news:8c******** *************** ***@posting.goo gle.com... Hello:
I´m not a professional programer in Access. I´m working in a proyect that will permit me add my flight time, but I have been having problems with the time adding.
Please can some one gve me a clue to how i can add time that exceeds 24 hours (Eg. 500:47)
You didn't give us any information about your table structure, but if you
are looking to calculate the number of hours or minutes between two
date/time values you need to use the DateDiff() function. : This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jamie Fryatt |
last post by:
Hi everyone, here's what id like to do.
I have a table with 2 fields, name and value
I need to be able to add multiple records quickly, for example I need to add
name value
abc 1
abc 2
abc 3
|
by: Adam Hartshorne |
last post by:
Hi All,
I have the following problem, and I would be extremely grateful if
somebody would be kind enough to suggest an efficient solution to it.
I create an instance of a Class A, and "push_back" a copy of this into a
vector V. This is repeated many times in an iterative process.
Ok whenever I "push_back" a copy of Class A, I also want to assign a
pointer contained in an exisiting instance of a Class B to this
|
by: Paul |
last post by:
Hi
I have a table that currently has 466 columns and about 700,000
records. Adding a new DEFAULT column to this table takes a long time.
It it a lot faster to recreate the table with the new columns and then
copy all of the data across.
As far as I am aware when you add a DEFAULT column the following
happens:
|
by: Tim |
last post by:
I have block of code adding values to dropdown list under
if (!Page.IsPostBack)
{
adding items
}
else
{
refreshing data
}
|
by: Jim Heavey |
last post by:
Trying to figure out the technique which should be used
to add rows to a datagrid. I am thinking that I would
want an "Add" button on the footer, but I am not quite
sure how to do that. Is that the best method? Do you
have a sample of how to do this?
| |
by: Andrew |
last post by:
Hey all,
I am very new to ASP.Net (and .Net in general), but that isn't stopping the
boss from wanting to begin new projects in it. This latest project has me
kinda stumped and after a couple days of struggling, I figure asking you all
(the experts) will keep me from going down some dark and dangerous road.
The project I have is a fairly simple one, in theory anyway. The gist is to
create a page where the user enters an IDNumber,...
|
by: Paul_Madden via DotNetMonster.com |
last post by:
Basically I have a listbox to which I add simple STRING items- I have a
progress bar which I increment whenever I populate another portion of the
complete set of items I wish to add. What I observe is that as more and more
are added, population of the list box takes longer and longer. ie the first
10th of the item set are added much much quicker than the last 10th. THis
occurs with about 40,000 listbox items. My worry is the listbox may...
|
by: Dinsdale |
last post by:
I'm looking at adding scheduling features to an application and I
wanted to ask the community about any experience with scheduling
components, either open source like from code project or from a vendor.
I'd like to be able to create schedules and lock resources for things
like collision detection (two events trying to use the same resource).
I've seen some GANTT charting components but I don't think that's what
I'm looking for. I'd...
|
by: Kadett |
last post by:
Hi all, I have following problem: I'm creating a ListView (Details) control
at run-time and filling it with some records (let's say 10 000). This
operation seems to be quite fast, but when I call Controls.Add(list),
where list is my ListView control, then program hangs for minute. It seems
like this time depends on number of records added to control. So probably
when adding control to my form, those records are actualy added at this time...
|
by: Joe |
last post by:
I'm trying to add the current time + a randomly generated time w/
millisecond precision, but the numbers aren't making sense.
If I add rand_time + now_time on my calculator, I get a different result
than what's in sched_time. Anyone see what I'm doing wrong?
These are my results ..
rand_time = 4958.128418
now_time = 1225033344.000000
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |