Steve-vfp9user
Programmer
Guys
I have a form with seven days made up of each day (e.g. Monday, Tuesday etc) and a total field. The field are numeric 5,2 but originally were numeric 5
The reason for the change is that some of the hours submitted are 4.30 (being 4 hours 30 minutes) or 3.45 (3 hours 45 minutes) to name a few.
Previously it was easy to add to whole number e.g. 4, 6, 7 etc but I'm struggling with how to add up hours and minutes to give a total hours and minutes.
Some of the threads I found talk about converting seconds to minutes or using a timedate field but as we are already using this program I was wondering how I go about adding up the fields shown above.
Previously in the lost focus procedure of each "day" field we have:
Replace total with Monday+Tuesday+Wednesday etc
What's the best way to achieve this please?
Thank you
Steve
I have a form with seven days made up of each day (e.g. Monday, Tuesday etc) and a total field. The field are numeric 5,2 but originally were numeric 5
The reason for the change is that some of the hours submitted are 4.30 (being 4 hours 30 minutes) or 3.45 (3 hours 45 minutes) to name a few.
Previously it was easy to add to whole number e.g. 4, 6, 7 etc but I'm struggling with how to add up hours and minutes to give a total hours and minutes.
Some of the threads I found talk about converting seconds to minutes or using a timedate field but as we are already using this program I was wondering how I go about adding up the fields shown above.
Previously in the lost focus procedure of each "day" field we have:
Replace total with Monday+Tuesday+Wednesday etc
What's the best way to achieve this please?
Thank you
Steve