this is the instruction:
Create an application that will calculate the total hours worked of an employee. The application must ask the user to enter the time in and out per day. Regular working hours is from 8:00am to 12:00nn/pm and from 1:00pm to 5pm.
Example:
Day Time In Time Out Hours Worked
1 8:00am 5:00pm 8
2 8:30am 5:30pm 7.5
Total Hours Worked: 15.5
As you can see above, there are only 2 days, but we should make it a 6 days..
there are 30 combo boxes to made...
2 comboboxes for the hours of time in and time out
2 comboboxes for minutes of time in and time out
2 comboboxes for am/pm of time in and time out..
and so as 6 days.. is 30 combo boxes..
all i did is to call every combo boxes for a day and to a label in hours worked...
and there the condition goes...
the variables hours, minutes and day are already declared in general..
if (hours >= 8 and minutes = 00 and day = "am") and (hours <= 12 and minutes = 00 and day = "pm") then
'calculation goes here...i am finding a way to count the hours.. base on the range.
end if
i tried to execute it using the condition above but it says syntax error!!!
is there any wrong with my condition?
well, i tried to do everything to get only the range needed... beyond the range is not counted.. and so i planned also to do count()? ive searched it in the goole...
any help will be really appreciated... thanks..

New Topic/Question
Reply



MultiQuote





|