bupton,
I can see the problem from a data entry point of view
You have the form open to enter data about when the email was received.
The email has both the date and time as 2 separate things.
Your difficulty is how to enter both the date and time into the same
textbox.
Have a play around with this.
Create a new table with only one field called DateReceived, set its data
type to DateTime, call it tblEmailReceived.
Create a new form with only one textbox. Set the form's data source to
tblEmailReceived.
Set the textbox's data source to DateReceived and its format property to
General Date.
In the text box type a date press spacebar once and enter the time
Access will display both the time and date in one textbox.
Type 24/12 space 10.56 am and see what you get.
Try a few other combinations until you get the hang of it.
Jeanette Cunningham
Jeanette Cunningham said:
bupton,
have a field called ReceivedDateTime
have another field called RespondedDateTime
the first field will record both the date and time that the email was
received, you will be easily to write a query to get either the time it
was received, the date it was received or both the date and time it was
received.
the second field will do the same as the first one but it will do it
for
the date and time that the email was responded to.
post back if you need some more explanation
Jeanette Cunningham
Doug same response to you as BAZ - I have to track them separately
based
on
the actual date and time that an e-mail has been received. Since the
date
and time is not the same as the db entry it has to be separate. Same
with
the response, the db entry may occur hours after the actual time the
e-mail
was responded to.
:
Sorry, but even if you need to be able to refer to strictly the date
or
strictly the time, you do not have to store them as separate fields.
You
can
always use the DateValue and/or TimeValue functions as computed
fields
in a
query, and use the query wherever you would otherwise have used the
table.
Are you certain that your date values don't actually have times
associated
with them?
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
I have separate date and time fields (necessary for what I am
tracking). I
am
using the following calculation: Hours:
(([FinalResponseDate]+[FinalRespTime])-([DateRequestedInfoReceived]+[TimeReqInfoRcvd]))*24
However, this is not calculating properly, I am getting different
returns
for the same calculation: Requested Info Received date/time =
12/11/2007
5:59 pm Final Response date/time = 12/11/2007 5:59 pm will
return -3.8666
for one record and 8.13333 for another, this should return 0.
I also do not want to include weekends and holidays - I already
have
the
module for this.