CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 another problem.... please help

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.