Ask a Question related to ASP, Design and Development.
-
DC #1
ADODB.Fields error '800a0bb9' in asp
Im getting the error
ADODB.Fields error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
In the following script to copy and rename the latest file in a webcam
folder. Any ideas why this is failing?
<%
Dim objFSO, rsFSO, objFolder, File, varFileName
Set rsFSO = Server.CreateObject("ADODB.Recordset")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("C:\Documents and
Settings\Administrator\My Documents\My Pictures\ImageStudio\Album\Motion
Images\")
rsFSO.Fields.Append "Name", adVarChar, 200 -----Error occurs on
this line.
rsFSO.Fields.Append "Type", adVarChar, 200
rsFSO.Fields.Append "DateCreated", adDate
rsFSO.Fields.Append "DateLastAccessed", adDate
rsFSO.Fields.Append "DateLastModified", adDate
rsFSO.Fields.Append "Size", adInteger
rsFSO.Fields.Append "TotalFileCount", adInteger
rsFSO.Open
For Each File In objFolder.Files
'hide any file that begins with the character to exclude
If (Left(File.Name, 1)) <> Exclude Then
rsFSO.AddNew
rsFSO("Name") = File.Name
rsFSO("Type") = File.Type
rsFSO("DateCreated") = File.DateCreated
rsFSO("DateLastAccessed") = File.DateLastAccessed
rsFSO("DateLastModified") = File.DateLastModified
rsFSO("Size") = File.Size
rsFSO.Update
End If
Next
rsFSO.Sort = "DateLastModified"
Set objFolder = Nothing
rsFSO.MoveFirst()
set varFileName = rsFSO("Name").Value
objFSO.CopyFile "C:\Documents and Settings\Administrator\My Documents\My
Pictures\ImageStudio\Album\Motion Images\" & varFileName,
"C:\Inetpub\Scripts\Webcam\Images\CurrentImage.jpg "
%>
<img src="\images\CurrentImage.jpg">
Thanks in advance.
--
_______________________________________________
DC
"You can not reason a man out of a position he did not reach through reason"
"Don't use a big word where a diminutive one will suffice."
"A man with a watch knows what time it is. A man with two watches is
never sure." Segal's Law
DC Guest
-
ASP, looping, and stored procedures.... error '800a0bb9' ...
Hi all, thanks in advance. Ok, heres the story. What is happening...... -------------------------------- I've got an ASP page that loops. It... -
Help with ADODB.Recordset Error (0x800A0BB9)
Hello, I'm having problems resolving ADODB.Recordset Error 0x800A0BB9. I'm running tutorial code from the Wrox Press book: Beginning ASP 3.0; Ch.... -
Object Reference Error on ADODB.RecordSet Fields
One of my developers is working on a .Net web app that has a wee bit o legacy code in Page_Onload: .... Dim MySelect as String = "SELECT User... -
ADODB.Connection error '800a0046'
I am receiving the following error: ADODB.Connection error '800a0046' Permission Denied Here is my connection string on my web page: <% Dim... -
#25481 [Opn->Bgs]: ADOdb -> fields error
ID: 25481 Updated by: sniper@php.net Reported By: zerokode at gmx dot net -Status: Open +Status: ... -
Tom B #2
Re: ADODB.Fields error '800a0bb9' in asp
Your server doesn't know what an adVarChar is
[url]http://www.aspfaq.com/show.asp?id=2112[/url]
[url]http://www.aspfaq.com/show.asp?id=2102[/url]
"DC" <sws99dsc@rdg.ac.uk> wrote in message
news:3F5F4558.2050203@rdg.ac.uk...reason"> Im getting the error
>
> ADODB.Fields error '800a0bb9'
>
> Arguments are of the wrong type, are out of acceptable range, or are in
> conflict with one another.
>
> In the following script to copy and rename the latest file in a webcam
> folder. Any ideas why this is failing?
>
> <%
> Dim objFSO, rsFSO, objFolder, File, varFileName
> Set rsFSO = Server.CreateObject("ADODB.Recordset")
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> Set objFolder = objFSO.GetFolder("C:\Documents and
> Settings\Administrator\My Documents\My Pictures\ImageStudio\Album\Motion
> Images\")
>
> rsFSO.Fields.Append "Name", adVarChar, 200 -----Error occurs on
> this line.
> rsFSO.Fields.Append "Type", adVarChar, 200
> rsFSO.Fields.Append "DateCreated", adDate
> rsFSO.Fields.Append "DateLastAccessed", adDate
> rsFSO.Fields.Append "DateLastModified", adDate
> rsFSO.Fields.Append "Size", adInteger
> rsFSO.Fields.Append "TotalFileCount", adInteger
> rsFSO.Open
>
> For Each File In objFolder.Files
> 'hide any file that begins with the character to exclude
> If (Left(File.Name, 1)) <> Exclude Then
> rsFSO.AddNew
> rsFSO("Name") = File.Name
> rsFSO("Type") = File.Type
> rsFSO("DateCreated") = File.DateCreated
> rsFSO("DateLastAccessed") = File.DateLastAccessed
> rsFSO("DateLastModified") = File.DateLastModified
> rsFSO("Size") = File.Size
> rsFSO.Update
> End If
> Next
>
> rsFSO.Sort = "DateLastModified"
>
> Set objFolder = Nothing
> rsFSO.MoveFirst()
> set varFileName = rsFSO("Name").Value
>
> objFSO.CopyFile "C:\Documents and Settings\Administrator\My Documents\My
> Pictures\ImageStudio\Album\Motion Images\" & varFileName,
> "C:\Inetpub\Scripts\Webcam\Images\CurrentImage.jpg "
> %>
>
> <img src="\images\CurrentImage.jpg">
>
> Thanks in advance.
>
> --
> _______________________________________________
>
> DC
>
> "You can not reason a man out of a position he did not reach through>
> "Don't use a big word where a diminutive one will suffice."
>
> "A man with a watch knows what time it is. A man with two watches is
> never sure." Segal's Law
>
Tom B Guest



Reply With Quote

