Hello,
In my Access report, I have a minutes field in the detail line. How
do I convert that minute to hour and minute. The problem for me now
is if I take the minutes, say 75 divide by 60, it gives me 1.25; or
90/60 = 1.50. These are not what the user wants.
They want to have hour and minutes, say 75 minutes, needs to convert
to 1.15 (1 hour 15 minutes); or 90 minutes to 1.30, and so on.
Are there any easy way to do it? Thanks in advance,
James 2 32824
Use Integer division to get the whole hours, and Mod to get the left over
minutes:
=[Minutes] \ 60 & Format([Minutes] Mod 60, "\:00")
--
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.
"James P." <ha*********@yahoo.com> wrote in message
news:f4**************************@posting.google.c om... Hello,
In my Access report, I have a minutes field in the detail line. How do I convert that minute to hour and minute. The problem for me now is if I take the minutes, say 75 divide by 60, it gives me 1.25; or 90/60 = 1.50. These are not what the user wants.
They want to have hour and minutes, say 75 minutes, needs to convert to 1.15 (1 hour 15 minutes); or 90 minutes to 1.30, and so on.
Are there any easy way to do it? Thanks in advance,
James
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message news:<41***********************@per-qv1-newsreader-01.iinet.net.au>... Use Integer division to get the whole hours, and Mod to get the left over minutes: =[Minutes] \ 60 & Format([Minutes] Mod 60, "\:00")
-- 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.
"James P." <ha*********@yahoo.com> wrote in message news:f4**************************@posting.google.c om... Hello,
In my Access report, I have a minutes field in the detail line. How do I convert that minute to hour and minute. The problem for me now is if I take the minutes, say 75 divide by 60, it gives me 1.25; or 90/60 = 1.50. These are not what the user wants.
They want to have hour and minutes, say 75 minutes, needs to convert to 1.15 (1 hour 15 minutes); or 90 minutes to 1.30, and so on.
Are there any easy way to do it? Thanks in advance,
James
Thank you very much, Allen. It works like a champ!
James This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Christine Lawrie |
last post by:
I have an Access 97 database that has graphs installed on a PC with
both Office 97 and Office 2000. I know other people are aware of this
- the database automatically uses Graph 2000 instead of...
|
by: Karen |
last post by:
Anyone that may be able to help.
I have MS Access 2000 installed. I need to convert some MS Access 2002
database files to MS Access 2000 needed for a course. Does anyone know how
to convert? ...
|
by: KEMDignam |
last post by:
I have upgraded my computer to Access 2003, but I have not converted my
databases since all of my clients still use Access 2000. I need to
create a new MDB, but Access is telling me that I will...
|
by: Paul |
last post by:
Is it possible to run an Access 2000 database on a PC with only Access97 installed?
I.e. Could you use a Access 2000 runtime ?
|
by: google0 |
last post by:
I know this is a trivial function, and I've now spent more time
searching for a surely-already-reinvented wheel than it would take to
reinvent it again, but just in case... is there a published,...
| |
by: Stumped |
last post by:
I'm using Access 2000 on a Dell PC with 256MB of RAM, and it freezes
up almost immediately after opening the database. The database is on an
internet server, but no-one else who connects notices...
|
by: NEWSGROUPS |
last post by:
I work for an organization that is migrating from Access 2000 to Access
2003. About 5 or 6 years ago we migrated from Access 97 to Access 2000 with
no problem. Will I have trouble converting these...
|
by: ThePhenix |
last post by:
Hi everybody,
I have recently been doing a conversion for my boss for a access 2000 database (both front and backend) to a MSSQL backend.
I finished the conversion today (as quite a lot of the...
|
by: NEWSGROUPS |
last post by:
I am in the midst of trying to convert about 25 Access 2000 to Access 2003.
The new environment consists of Office/Access 2003 and Outlook 2003. When
converting the back ends I have no problems....
|
by: George |
last post by:
Hello........I have a problem adding up record entries with more than 24
hours when the fields are formatted as hour/minute (h:m). If the actual
summed total of all records is greater than 24...
|
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,...
| |
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...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |