?
Solved

VB6 help please:  Need help to find out the tomorow remaining hours for a driver who can not drive more than 60 hour a week

Posted on 2006-10-23
9
Medium Priority
?
161 Views
Last Modified: 2016-08-29
Hello This is the Code I have and I am only a beginner please tell me where I am going wrong.  Thanks

Private Sub cmdCompute_Click()
TotalHrs = 0 + 1 + 2 + 3 + 4 + 5
intTomRemHrs = 60 - TotalHrs
End Sub

Private Sub cmdExit_Click()
Load Me
End Sub

Private Sub TodayDateHrs_Change()
Dim intHrs(6) As Integer
TodayDateHrs = 0
OneDayAgoHrs = 1
TwoDaysAgoHrs = 2
ThreeDaysAgoHrs = 3
FourDaysAgoHrs = 4
FiveDaysAgoHrs = 5
End Sub

Private Sub TomRemHrs_Change()
Dim intTomRemHrs As Integer

End Sub


Any help is appreciated thanks.
0
Comment
Question by:macauley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 18

Expert Comment

by:JR2003
ID: 17792534
I can't see what your code is supposed to do. What are you trying to do?
0
 

Author Comment

by:macauley
ID: 17792566
I need to find otu to find out the tomorow remaining hours for a driver who can not drive more than 60 hour a week
0
 

Author Comment

by:macauley
ID: 17792575
may be my question look awkward but it will be great if you can help, my question is : i drive only sixty hours a week, so the program should ask me about my hrs today, then the program will adds the total hrs for six past consecutive days including to day, then the program will deduct that total from sixty, the remainder is the hrs available for tomorow to be displayed, sorry if i am too fussy
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 15

Expert Comment

by:JackOfPH
ID: 17793155
is this an assignment?
0
 

Author Comment

by:macauley
ID: 17793169
No it is not.  It is something I am playing with for hobby as I do an elearning course.
0
 
LVL 15

Accepted Solution

by:
JackOfPH earned 2000 total points
ID: 17793175
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 17793177
I uploaded a program check it out ...
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 17793179
Post if you have questions
0
 

Author Comment

by:macauley
ID: 17793201
Thank you JackOfPH.  Your sample does exactly what I was lookign for, now I will be able to review it and see where I was way off.

Thank you.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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
Course of the Month10 days, 2 hours left to enroll

762 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