Re: Error Message (0x800401F3)
From: Viatcheslav V. Vassiliev (msnewsgroup_at_www-sharp.com)
Date: 06/18/04
- Next message: anton muhin: "Problems with this and Joe Graf's DynamicOnly"
- Previous message: Viatcheslav V. Vassiliev: "Re: Moving a string from VBScript to JScript"
- In reply to: Bill Barber: "Error Message (0x800401F3)"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Jun 2004 13:16:25 +0400
Your error is CO_E_CLASSSTRING - "Invalid class string". You misspell
ADODB.Recordset (you write adoBD).
To get record count for the table, execute SELECT COUNT(*) FROM HSVotes -
this will return recordset with one row and one column. This is much more
efficient that requesting whole table.
//------------------------------------
Regards,
Vassiliev V. V.
http://www-sharp.com -
Scripting/HTA/.Net Framework IDE
"Bill Barber" <BillBarber@discussions.microsoft.com> сообщил/сообщила в
новостях следующее:
news:672C2504-6D52-4781-8CCC-F9664392CE01@microsoft.com...
> This message is all I get!
> When I look it up it says go to www.microsoft.com/contentredirect.asp
> Nothing there!
>
> I am just trying to get a Record Count of my table in JScript.
>
> This is the Code I Have so far.
>
> <p><Input Type="Button" Value="Record Vote" Name="V1"
OnClick="AddVotes()">
>
> <Script Language="JavaScript">
>
> function AddVotes(){<%
> SQLString = "SELECT * FROM HSVotes"
> set objConn=Server.CreateObject("adobd.recordset")
> objConn.Open SQLString, Connection, 1, 3%>
> var incomplete = "Add Votes Called";
> alert (incomplete);
> }
>
> </Script>
>
> Thanx in Advance for any constructive help
>
> Bill Barber
>
>
- Next message: anton muhin: "Problems with this and Joe Graf's DynamicOnly"
- Previous message: Viatcheslav V. Vassiliev: "Re: Moving a string from VBScript to JScript"
- In reply to: Bill Barber: "Error Message (0x800401F3)"
- Messages sorted by: [ date ] [ thread ]