R
Robert T
Hello:
I have a simple employee database that tracks starting/ending time each day.
Right now, since Access doesn't have a time field, I'm using date/time fields
to enter the employee's starting and ending time every day.
Everything works well, however, I decided that I would rather have a field
that tracks only TIME, so I need to convert the time fields to numeric ones
and I can't figure out exactly how to do the conversion.
I am creating several new NUMERIC and TEXT fields. Note that I don't have to
worry about employees going past midnight.
[1] Start_Time_Hrs [numeric]
[2] Start_Time_Min [numeric]
[3] Start_AMPM [TEXT]
[4] End_Time_Hrs [numeric]
[5] End_Time_Min [numeric]
[6] End_AMPM [Text]
[7] Total_Time [Numeric]
I'm not sure if I will need the Start_AmPm and End_AmPM fields, but I threw
them into the mix for now.
Instead of going back over several months of data, I would like to convert
the current data in the Date/Time fields to numeric fields. I am giving
examples below.
In addition, I'm guessing the expressions I need will go on the form?
7:30 am ->convert to 3 different values:
7 [hours] 30 [minutes] AM
4:00 pm -> convert to 3 different values:
4 [hours] 0 [minutes] PM
I looked at the LEFT function but I must be doing something wrong.
In order to convert minutes, I need a formula to capture the data to the
right of the colon in the Date/Time field.
Once I get the above going, I'm sure I can come up with an expression to
substract the Start_Time from the End_Time to get the total hours and minutes
worked.
Thanks in advance for your help,
Robert
I have a simple employee database that tracks starting/ending time each day.
Right now, since Access doesn't have a time field, I'm using date/time fields
to enter the employee's starting and ending time every day.
Everything works well, however, I decided that I would rather have a field
that tracks only TIME, so I need to convert the time fields to numeric ones
and I can't figure out exactly how to do the conversion.
I am creating several new NUMERIC and TEXT fields. Note that I don't have to
worry about employees going past midnight.
[1] Start_Time_Hrs [numeric]
[2] Start_Time_Min [numeric]
[3] Start_AMPM [TEXT]
[4] End_Time_Hrs [numeric]
[5] End_Time_Min [numeric]
[6] End_AMPM [Text]
[7] Total_Time [Numeric]
I'm not sure if I will need the Start_AmPm and End_AmPM fields, but I threw
them into the mix for now.
Instead of going back over several months of data, I would like to convert
the current data in the Date/Time fields to numeric fields. I am giving
examples below.
In addition, I'm guessing the expressions I need will go on the form?
7:30 am ->convert to 3 different values:
7 [hours] 30 [minutes] AM
4:00 pm -> convert to 3 different values:
4 [hours] 0 [minutes] PM
I looked at the LEFT function but I must be doing something wrong.
In order to convert minutes, I need a formula to capture the data to the
right of the colon in the Date/Time field.
Once I get the above going, I'm sure I can come up with an expression to
substract the Start_Time from the End_Time to get the total hours and minutes
worked.
Thanks in advance for your help,
Robert