R
Robert T
Hello:
I’m relatively new to Access so I’m still confused by some of the things
that happen. I have a basic form that calculates elapsed time for my daily
work schedule. Here’s the expression I copied from the Control Source:
=HoursAndMinutes([EndTime] -[StartTime])
It works perfectly. However, I tried showing one of my co-workers how to
create a calculated field on a form to do the same thing, using the above
expression, and much to my amazement, I received the following error message:
#name?
I checked the spelling, the name of the control, and did everything I could
think of, but that expression still results in #name?
I went online and found another way to calculate elapsed time on a form and
this one works. I don’t understand why the following expression works but the
one above doesn’t. This one calculates elapsed time in minutes so I have
another calculated field on the form that converts it to hours and minutes.
Can someone please explain that to me.
=DateDiff("n",[StartTime],[EndTime])
=[TotalTimeWorked]\60 & Format([TotalTimeWorked] Mod 60,"\:00")
Thanks,
Robert
I’m relatively new to Access so I’m still confused by some of the things
that happen. I have a basic form that calculates elapsed time for my daily
work schedule. Here’s the expression I copied from the Control Source:
=HoursAndMinutes([EndTime] -[StartTime])
It works perfectly. However, I tried showing one of my co-workers how to
create a calculated field on a form to do the same thing, using the above
expression, and much to my amazement, I received the following error message:
#name?
I checked the spelling, the name of the control, and did everything I could
think of, but that expression still results in #name?
I went online and found another way to calculate elapsed time on a form and
this one works. I don’t understand why the following expression works but the
one above doesn’t. This one calculates elapsed time in minutes so I have
another calculated field on the form that converts it to hours and minutes.
Can someone please explain that to me.
=DateDiff("n",[StartTime],[EndTime])
=[TotalTimeWorked]\60 & Format([TotalTimeWorked] Mod 60,"\:00")
Thanks,
Robert