W
WANNABE
please educate me..
I have 2 simple tables employee, tasks. I have a form for tasks, that I
want to automatically identify the employee using environ("username") and is
a matching record exists in the employee table then pass the EID to the task
form and save it with the task record.
I have created a qry that works ( SELECT userid, empid FROM emp WHERE
userid=environ("username") and tried to pass that to the tasks.empid field
through the fields default value property, with something like this
(=[qry_SelUser]![empid]), and
I also tried putting the query directly in the default value nothing has
worked so far. Can someone please clue me in...
Thank you.
I have 2 simple tables employee, tasks. I have a form for tasks, that I
want to automatically identify the employee using environ("username") and is
a matching record exists in the employee table then pass the EID to the task
form and save it with the task record.
I have created a qry that works ( SELECT userid, empid FROM emp WHERE
userid=environ("username") and tried to pass that to the tasks.empid field
through the fields default value property, with something like this
(=[qry_SelUser]![empid]), and
I also tried putting the query directly in the default value nothing has
worked so far. Can someone please clue me in...
Thank you.