Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > error

Reply
Thread Tools

error

 
 
amatuer
Guest
Posts: n/a
 
      06-05-2006
Microsoft VBScript runtime error '800a01ca'
Variable uses an Automation type not supported in VBScript

/verslag/Present_Rpt_Gen.asp, line 66


any1 knw wat this means?

Urgent!Please.

 
Reply With Quote
 
 
 
 
Mike Brind
Guest
Posts: n/a
 
      06-05-2006

amatuer wrote:
> Microsoft VBScript runtime error '800a01ca'
> Variable uses an Automation type not supported in VBScript
>
> /verslag/Present_Rpt_Gen.asp, line 66
>
>
> any1 knw wat this means?


http://www.aspfaq.com/show.asp?id=2374

>
> Urgent!Please.


Really?

--
Mike Brind

 
Reply With Quote
 
 
 
 
Aaron Bertrand [SQL Server MVP]
Guest
Posts: n/a
 
      06-05-2006
Yes, you are using an automation type not supported by VBScript. Sorry,
can't get more specific than that, because you didn't show us the code on or
around line 66.

What are you trying to do, launch Excel on the client from ASP?





"amatuer" <> wrote in message
news: oups.com...
> Microsoft VBScript runtime error '800a01ca'
> Variable uses an Automation type not supported in VBScript
>
> /verslag/Present_Rpt_Gen.asp, line 66
>
>
> any1 knw wat this means?
>
> Urgent!Please.
>



 
Reply With Quote
 
amatuer
Guest
Posts: n/a
 
      06-05-2006
<% If isnull(rstMain("Gehooraantal")) then%>
<%tot = tot%>
<% Else %>
<% tot = tot + (int(rstMain("Gehooraantal"))) %>
<%End If%>
<% rstMain.movenext
wend%>

there's the code. line66 is under the else statement.

Aaron Bertrand [SQL Server MVP] wrote:
> Yes, you are using an automation type not supported by VBScript. Sorry,
> can't get more specific than that, because you didn't show us the code on or
> around line 66.
>
> What are you trying to do, launch Excel on the client from ASP?
>
>
>
>
>
> "amatuer" <> wrote in message
> news: oups.com...
> > Microsoft VBScript runtime error '800a01ca'
> > Variable uses an Automation type not supported in VBScript
> >
> > /verslag/Present_Rpt_Gen.asp, line 66
> >
> >
> > any1 knw wat this means?
> >
> > Urgent!Please.
> >


 
Reply With Quote
 
Mike Brind
Guest
Posts: n/a
 
      06-05-2006
<% tot = tot + clng(rstMain("Gehooraantal")) %>

Get rid of the <% %> around EVERY line. Put <% at the beginning, and
%> at the end of the block. Also, While... Wend has been deprecated.
Use Do... Loop:

Do Whiile Not rstMain.EOF
....
....
rstMain.Movenext
Loop

--
Mike Brind

amatuer wrote:
> <% If isnull(rstMain("Gehooraantal")) then%>
> <%tot = tot%>
> <% Else %>
> <% tot = tot + (int(rstMain("Gehooraantal"))) %>
> <%End If%>
> <% rstMain.movenext
> wend%>
>
> there's the code. line66 is under the else statement.
>
> Aaron Bertrand [SQL Server MVP] wrote:
> > Yes, you are using an automation type not supported by VBScript. Sorry,
> > can't get more specific than that, because you didn't show us the code on or
> > around line 66.
> >
> > What are you trying to do, launch Excel on the client from ASP?
> >
> >
> >
> >
> >
> > "amatuer" <> wrote in message
> > news: oups.com...
> > > Microsoft VBScript runtime error '800a01ca'
> > > Variable uses an Automation type not supported in VBScript
> > >
> > > /verslag/Present_Rpt_Gen.asp, line 66
> > >
> > >
> > > any1 knw wat this means?
> > >
> > > Urgent!Please.
> > >


 
Reply With Quote
 
amatuer
Guest
Posts: n/a
 
      06-05-2006
Thanx Mike.


Mike Brind wrote:
> <% tot = tot + clng(rstMain("Gehooraantal")) %>
>
> Get rid of the <% %> around EVERY line. Put <% at the beginning, and
> %> at the end of the block. Also, While... Wend has been deprecated.
> Use Do... Loop:
>
> Do Whiile Not rstMain.EOF
> ...
> ...
> rstMain.Movenext
> Loop
>
> --
> Mike Brind
>
> amatuer wrote:
> > <% If isnull(rstMain("Gehooraantal")) then%>
> > <%tot = tot%>
> > <% Else %>
> > <% tot = tot + (int(rstMain("Gehooraantal"))) %>
> > <%End If%>
> > <% rstMain.movenext
> > wend%>
> >
> > there's the code. line66 is under the else statement.
> >
> > Aaron Bertrand [SQL Server MVP] wrote:
> > > Yes, you are using an automation type not supported by VBScript. Sorry,
> > > can't get more specific than that, because you didn't show us the code on or
> > > around line 66.
> > >
> > > What are you trying to do, launch Excel on the client from ASP?
> > >
> > >
> > >
> > >
> > >
> > > "amatuer" <> wrote in message
> > > news: oups.com...
> > > > Microsoft VBScript runtime error '800a01ca'
> > > > Variable uses an Automation type not supported in VBScript
> > > >
> > > > /verslag/Present_Rpt_Gen.asp, line 66
> > > >
> > > >
> > > > any1 knw wat this means?
> > > >
> > > > Urgent!Please.
> > > >


 
Reply With Quote
 
Aaron Bertrand [SQL Server MVP]
Guest
Posts: n/a
 
      06-05-2006
Well, I see nothing in this code that would cause the error you mentioned.
So, line 66 must be elsewhere. Can you show all the individual lines with
CreateObject in them?




"amatuer" <> wrote in message
news: oups.com...
> <% If isnull(rstMain("Gehooraantal")) then%>
> <%tot = tot%>
> <% Else %>
> <% tot = tot + (int(rstMain("Gehooraantal"))) %>
> <%End If%>
> <% rstMain.movenext
> wend%>
>
> there's the code. line66 is under the else statement.



 
Reply With Quote
 
amatuer
Guest
Posts: n/a
 
      06-07-2006
Mike sortd the prob. Thanx Aaron

Aaron Bertrand [SQL Server MVP] wrote:
> Well, I see nothing in this code that would cause the error you mentioned.
> So, line 66 must be elsewhere. Can you show all the individual lines with
> CreateObject in them?
>
>
>
>
> "amatuer" <> wrote in message
> news: oups.com...
> > <% If isnull(rstMain("Gehooraantal")) then%>
> > <%tot = tot%>
> > <% Else %>
> > <% tot = tot + (int(rstMain("Gehooraantal"))) %>
> > <%End If%>
> > <% rstMain.movenext
> > wend%>
> >
> > there's the code. line66 is under the else statement.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xffc Thread 0x228 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-30-2006 03:16 PM
Error connecting to SQLExpress 2005 locally (error: 26 - Error Locating Server/Instance Specified) hfk0 ASP .Net 2 03-27-2006 08:43 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 1 03-24-2006 04:20 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-24-2006 02:22 PM
Error 500: ERROR: Cannot forward. Writer or Stream already obtained. Error JavaQueries Java 1 03-01-2005 06:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57