expression for time sheet returns type mismatch

J

jpstormy

I am trying to create a time sheet for appointments that tells how long each
appt lasted so I can bill them per hour. The expression I have entered with
the builder is
Session Time: Sessions![End Time]-Sessions![Start Time]
but it tells me there is a type mismatch error, but they are both times.
 
J

John W. Vinson

I am trying to create a time sheet for appointments that tells how long each
appt lasted so I can bill them per hour. The expression I have entered with
the builder is
Session Time: Sessions![End Time]-Sessions![Start Time]
but it tells me there is a type mismatch error, but they are both times.

Take a look at the VBA help for DateDiff(). Are Start Time and End Time fields
in your table, or controls on a form? If controls, then they will be seen as
Text values (which would explain your error message).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top