G
Guest
I have a table containing records regarding time spent on specific projects.
with the following fields:
tblTime
---------
TimeID (PK)
EmployeeID (From tblEmployees)
ProjectID (FromtblProjects)
DateIn
TimeIn
DateOut
TimeOut
The first form I have creates a record. the user selects his EmployeeID and
the projectID. The DateIn and TimeIn are set to DAte() and Time(). so when
the form is closed a new record is created containg the data of who and which
project and the time the record was created.
I now need a second form where the user can select the record desired and
the dateOut and TimeOut fields are completed. So far I have a Form where the
employee selects his number(from a combo) and the date the job was started.
Then I have a combo which has options selected from a query which uses the
data from the first two form boxes. this allows the user to choose any
records that match their EmployeeID, DateIn and have no value for DateOut.
This so far is fine.
However how do i go about then entering the current time and date into the
TimOut and DateOut fields for the chosen record? At the moment I have text
boxes wth their default value set to Date() andTime(). I assumed that if i
then just put their RecordSource to the relevant field that when the form was
closed these values would be put into the desired record. However there seems
to be nothing happening whatsoever.
any help would be greatly appreciated.
regards James
with the following fields:
tblTime
---------
TimeID (PK)
EmployeeID (From tblEmployees)
ProjectID (FromtblProjects)
DateIn
TimeIn
DateOut
TimeOut
The first form I have creates a record. the user selects his EmployeeID and
the projectID. The DateIn and TimeIn are set to DAte() and Time(). so when
the form is closed a new record is created containg the data of who and which
project and the time the record was created.
I now need a second form where the user can select the record desired and
the dateOut and TimeOut fields are completed. So far I have a Form where the
employee selects his number(from a combo) and the date the job was started.
Then I have a combo which has options selected from a query which uses the
data from the first two form boxes. this allows the user to choose any
records that match their EmployeeID, DateIn and have no value for DateOut.
This so far is fine.
However how do i go about then entering the current time and date into the
TimOut and DateOut fields for the chosen record? At the moment I have text
boxes wth their default value set to Date() andTime(). I assumed that if i
then just put their RecordSource to the relevant field that when the form was
closed these values would be put into the desired record. However there seems
to be nothing happening whatsoever.
any help would be greatly appreciated.
regards James