Steffan Ng
|
Posted: 07/29/2002, 9:39 PM |
|
Hi,
I was try the following codes that i found under CCS help file. And insert
it in to
events --> before show.
Anyway I just got an error message said that there's an error at
CCGetUserID. But if I remove "else" and publish project, than it work.
~~~~~~~~~~~ CODE ~~~~~~~~~~
if tasks.EditMode then
tasks.user_id_assign_by.Value = CCDLookUp("emp_name", "employees", "emp_id="
& CCToSQL(tasks.user_id_assign_by.Value,"Integer") , DBIntranetDB)
else
tasks.user_id_assign_by.Value = CCDLookUp("emp_name", "employees", "emp_id="
& CCToSQL(CCGetUserID,"Integer"), DBIntranetDB)
end if
~~~~~~~~~~~ END ~~~~~~~~~~~
|
|
|
|