zblakroz
|
| Posted: 09/19/2002, 10:33 AM |
|
ok, here is another one from the tutorial, page 59.... hehee, bear with me, I am learning this stuff...LOL
I was up for quite some time looking at this. please help Thanks!
<%
'BindEvents Method @1-984A085B
Sub BindEvents()
Set tasks.user_id_assign_by.CCSEvents("BeforeShow") = GetRef("tasks_user_id_assign_by_BeforeShow")
End Sub
'End BindEvents Method
Function tasks_user_id_assign_by_BeforeShow() 'tasks_user_id_assign_by_BeforeShow @13-DFB54826
'Custom Code @20-73254650
' -------------------------
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 Custom Code
End Function 'Close tasks_user_id_assign_by_BeforeShow @13-54C34B28
%>
|
|
|
 |
zblakroz
|
| Posted: 09/19/2002, 10:40 AM |
|
this is the error i get:
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/Tutorial/tasks_maint_events.asp, line 13, column 78
tasks.user_id_assign_by.Value = CCDLookUp("emp_name", "employees", "emp_id=" &
-----------------------------------------------------------------------------^
|
|
|
 |
Nicole
|
| Posted: 09/20/2002, 3:15 AM |
|
Hello,
make sure that the expression
tasks.user_id_assign_by.Value = CCDLookUp("emp_name", "employees", "emp_id=" &
CCToSQL(tasks.user_id_assign_by.Value,"Integer") , DBIntranetDB)
is typed in one line in code editor.
|
|
|
 |
|