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
153 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
  • 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
 
LVL 15

Expert Comment

by:JackOfPH
ID: 17793155
is this an assignment?
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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 500 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now