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

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.
macauleyAsked:
Who is Participating?
 
JR2003Commented:
I can't see what your code is supposed to do. What are you trying to do?
0
 
macauleyAuthor Commented:
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
macauleyAuthor Commented:
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
 
JackOfPHCommented:
is this an assignment?
0
 
macauleyAuthor Commented:
No it is not.  It is something I am playing with for hobby as I do an elearning course.
0
 
JackOfPHCommented:
I uploaded a program check it out ...
0
 
JackOfPHCommented:
Post if you have questions
0
 
macauleyAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.