G
Guest
Hello. I have 2 textboxes on a form (StartTime and EndTime) that I need to
calculate out how much time elapsed between them. This goes into another
textbox to display the difference. The form's source comes from a query. In
the qry I added the extra field and the extra field and bound it to the form
field. Below is the qry that the form uses. An example is if I use 12:36
start time and 14:30 end time, the form field shows 0.08. What I would like
to show is the number of minutes between the 2 short times.
SELECT tblProjectWorkTime.ProjectWorkTimeID,
tblProject.ProjectName,
tblProjectWorkTime.ProjectWorkTimeDate,
tblProjectWorkTime.ProjectWorkStartTime,
tblProjectWorkTime.ProjectWorkEndTime,
tblProjectWorkTime.ProjectWorkTimeDescription,
tblProject.ProjectID,
tblProjectWorkTime.ProjectWorkTimeArchived,
[ProjectWorkEndTime]-[ProjectWorkStartTime] AS TotalAmount
FROM tblProject INNER JOIN tblProjectWorkTime ON tblProject.ProjectID =
tblProjectWorkTime.ProjectID
WHERE (((tblProject.ProjectID)=[Forms]![frmProject]![txtProjectID]) AND
((tblProjectWorkTime.ProjectWorkTimeArchived)=No))
ORDER BY tblProjectWorkTime.ProjectWorkTimeDate DESC;
If anyone can steer me in the right direction, thanks for doing so.
*** John
calculate out how much time elapsed between them. This goes into another
textbox to display the difference. The form's source comes from a query. In
the qry I added the extra field and the extra field and bound it to the form
field. Below is the qry that the form uses. An example is if I use 12:36
start time and 14:30 end time, the form field shows 0.08. What I would like
to show is the number of minutes between the 2 short times.
SELECT tblProjectWorkTime.ProjectWorkTimeID,
tblProject.ProjectName,
tblProjectWorkTime.ProjectWorkTimeDate,
tblProjectWorkTime.ProjectWorkStartTime,
tblProjectWorkTime.ProjectWorkEndTime,
tblProjectWorkTime.ProjectWorkTimeDescription,
tblProject.ProjectID,
tblProjectWorkTime.ProjectWorkTimeArchived,
[ProjectWorkEndTime]-[ProjectWorkStartTime] AS TotalAmount
FROM tblProject INNER JOIN tblProjectWorkTime ON tblProject.ProjectID =
tblProjectWorkTime.ProjectID
WHERE (((tblProject.ProjectID)=[Forms]![frmProject]![txtProjectID]) AND
((tblProjectWorkTime.ProjectWorkTimeArchived)=No))
ORDER BY tblProjectWorkTime.ProjectWorkTimeDate DESC;
If anyone can steer me in the right direction, thanks for doing so.
*** John