J
JackieB
I am working with Access 2003. I am creating time sheets. When calculating
times into hours worked for each day I receive an "#Error" in a new record.
This is my calculation in the page footer Text box name "Total":
=HoursAndMinutes(IIf([OutTime] Is Null,[OutTime2]-[InTime2],IIf([OutTime2]
Is Null,[Outtime]-[InTime],IIf([OutTime2] Is Not
Null,[Outtime]-[InTime]+[OutTime2]-[ InTime2],IIf([InTime] And [OutTime] And
[InTime2] And [OutTime2] Is Null,"00:00")))))
This is my caluculation in Subform Text box name "Text35":
=IIf([total] Is Null,"00:00",[total])
Example of end product= "8:00"
New entry on the above works perfect
This is my Calucalation in Subform to convert to fraction of day:
=FormatNumber([Text35],6)
Example of end product=".333333"
New entry ="#Error"
Calculation in subform to convert to hours:
=Round([Fraction of day]*24,2)
Example of end product= "8.00"
New Entry = "#Error"
I have tried many different things and always have a return of "#Error" in
new entry.
Please help
times into hours worked for each day I receive an "#Error" in a new record.
This is my calculation in the page footer Text box name "Total":
=HoursAndMinutes(IIf([OutTime] Is Null,[OutTime2]-[InTime2],IIf([OutTime2]
Is Null,[Outtime]-[InTime],IIf([OutTime2] Is Not
Null,[Outtime]-[InTime]+[OutTime2]-[ InTime2],IIf([InTime] And [OutTime] And
[InTime2] And [OutTime2] Is Null,"00:00")))))
This is my caluculation in Subform Text box name "Text35":
=IIf([total] Is Null,"00:00",[total])
Example of end product= "8:00"
New entry on the above works perfect
This is my Calucalation in Subform to convert to fraction of day:
=FormatNumber([Text35],6)
Example of end product=".333333"
New entry ="#Error"
Calculation in subform to convert to hours:
=Round([Fraction of day]*24,2)
Example of end product= "8.00"
New Entry = "#Error"
I have tried many different things and always have a return of "#Error" in
new entry.
Please help