CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Help

Print topic Send  topic

Author Message
Tuong Do
Posted: 07/29/2002, 9:22 PM

Can someone please tell me what wrong with this code?
How should I declare a varibles of type ADODB?



Function EMP_TEMP_Button1_OnClick() 'EMP_TEMP_Button1_OnClick @14-789F0312

'Custom Code @15-73254650
Dim test
test = CCExecSQL("insert into emp (emp_id,org_name) values (1,'Xyz')",
NEST2,false)

' -------------------------
' Write your own code here.
' -------------------------
'End Custom Code

End Function 'Close EMP_TEMP_Button1_OnClick @14-54C34B28


And the Error is
Technical Information (for support personnel)

a.. Error Type:
Microsoft VBScript runtime (0x800A01F4)
Variable is undefined: 'NEST2'
/nest2/EMP_TEMP_staff2_events.asp, line 12


b.. Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

c.. Page:
POST 99 bytes to /nest2/EMP_TEMP_staff2.asp

d.. POST


Alexey Alexapolsky
Posted: 07/30/2002, 6:12 AM

Most probably if your connection is named nest2 ,
connection variable is named DBnest2

--

Alex,
Support Engineer
CodeCharge Team



"Tuong Do" <tuongdo@somewhere.onerath> wrote in message
news:ai549e$pqd$1@news.codecharge.com...
> Can someone please tell me what wrong with this code?
> How should I declare a varibles of type ADODB?
>
>
>
> Function EMP_TEMP_Button1_OnClick() 'EMP_TEMP_Button1_OnClick @14-789F0312
>
> 'Custom Code @15-73254650
> Dim test
> test = CCExecSQL("insert into emp (emp_id,org_name) values (1,'Xyz')",
> NEST2,false)
>
> ' -------------------------
> ' Write your own code here.
> ' -------------------------
> 'End Custom Code
>
> End Function 'Close EMP_TEMP_Button1_OnClick @14-54C34B28
>
>
> And the Error is
> Technical Information (for support personnel)
>
> a.. Error Type:
> Microsoft VBScript runtime (0x800A01F4)
> Variable is undefined: 'NEST2'
> /nest2/EMP_TEMP_staff2_events.asp, line 12
>
>
> b.. Browser Type:
> Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
>
> c.. Page:
> POST 99 bytes to /nest2/EMP_TEMP_staff2.asp
>
> d.. POST
>
>
>


   


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.