E
edisonl via AccessMonster.com
Hi,
I have this Accesss application that run well with all computer in the
company except for this particular one.
Problem rises output generated base on Text Box controls was dissimiliar from
the rest of computer.
Eg: What I want to achieve is to round up timing to half hourly
totalhours = DateDiff("n", [starttime], [endtime]) / 60 'In hours
totalhours = CDec(totalhours)
How I did was>>
if(starttime_text < "10:00" AND endtime_text > "10"15")then
totalhours = totalhours - 0.17 ' 0.17 = 10/60 round
2 decimal
if(totalhours < 0.5 and totalhours > 0.1)then
totalhours = 0.5
endtime_text = 0.5
exit sub
EndIf
EndIf
All but 1 computer was not able to offset break time round up by half hourly
Regards, Edison
I have this Accesss application that run well with all computer in the
company except for this particular one.
Problem rises output generated base on Text Box controls was dissimiliar from
the rest of computer.
Eg: What I want to achieve is to round up timing to half hourly
totalhours = DateDiff("n", [starttime], [endtime]) / 60 'In hours
totalhours = CDec(totalhours)
How I did was>>
if(starttime_text < "10:00" AND endtime_text > "10"15")then
totalhours = totalhours - 0.17 ' 0.17 = 10/60 round
2 decimal
if(totalhours < 0.5 and totalhours > 0.1)then
totalhours = 0.5
endtime_text = 0.5
exit sub
EndIf
EndIf
All but 1 computer was not able to offset break time round up by half hourly
Regards, Edison