[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

minutes to hours and minutes

Posted on 1999-12-29
3
Medium Priority
?
323 Views
Last Modified: 2010-05-02
Say I have 250 Minutes, how would I convert this into 4 hours and 10 minutes?  I need this to work for all times not just 250 minutes.
0
Comment
Question by:mrcool4444
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
kamall earned 80 total points
ID: 2313610
Put one command button on your form, and enter this code:

Private Sub Command1_Click()
  x = 250
  y = x \ 60      'hours
  z = x Mod 60    'minutes
  Print "hours=" & y, "minutes=" & z
End Sub

Regards.
0
 

Author Comment

by:mrcool4444
ID: 2313708
Thanks!! I just have one question, what is Mod?
0
 
LVL 7

Expert Comment

by:kamall
ID: 2313718
It gives your the remainder of the division of two numbers, rather than the integer part (the actual result).
Regards.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question