A
AccessUser777 via AccessMonster.com
Hello all,
I have two forms; one of which is behind the scenes. I'm trying to capture
time stamps on how long it takes an employee to complete a task. Form1 has
all the task info (taskid, issue, actions etc). Form2 has fields empID,
taskid,starttime, endtime. Form2 will ask for the empID then hide and open
Form1. Once the field for taskID is entered on Form1 I want copy that value
and populate it on Form2 and also record the starttime with now() function on
Form2. When the employee clicks on Save on Form1, I want to record the
endtime now() on Form2.
I've tried several ways to copy the taskid from Form1 to Form2 with codes
from this site however, I couldn't get it to work; so I ended up creating a
macros to do that.
On Form2 I have the following code
ON ENTER event for task ID
me.starttime.value=now()
But this isn't working either
In a nutshell I looking for code for the following
1) copy a value from form1 to form2
2) what event should I use when the value is populated on Form2 to start
recording time
3) code to record end time on Form2 when the user clicks on save on Form1
I have two forms; one of which is behind the scenes. I'm trying to capture
time stamps on how long it takes an employee to complete a task. Form1 has
all the task info (taskid, issue, actions etc). Form2 has fields empID,
taskid,starttime, endtime. Form2 will ask for the empID then hide and open
Form1. Once the field for taskID is entered on Form1 I want copy that value
and populate it on Form2 and also record the starttime with now() function on
Form2. When the employee clicks on Save on Form1, I want to record the
endtime now() on Form2.
I've tried several ways to copy the taskid from Form1 to Form2 with codes
from this site however, I couldn't get it to work; so I ended up creating a
macros to do that.
On Form2 I have the following code
ON ENTER event for task ID
me.starttime.value=now()
But this isn't working either
In a nutshell I looking for code for the following
1) copy a value from form1 to form2
2) what event should I use when the value is populated on Form2 to start
recording time
3) code to record end time on Form2 when the user clicks on save on Form1