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
156 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB 6.0 printer how to align 6 62
Microsoft Access combo box help 2 47
Add a task in Outlook from access 11 39
VBA - If Bookmark = "XXBOOKMARKXX" then 15 28
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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

777 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