PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

ADODB.Connection error '800a0e7c'

 
 
PJ
Guest
Posts: n/a
 
      29th Oct 2003
I'm getting connection errors when I try to post my web page to
database? Can someone help me...Here's the error:

ADODB.Connection error '800a0e7c'

Parameter object is improperly defined. Inconsistent or incomplete
information was provided.

/taxapp/installments.asp, line 207


Here's my code:

<%

set oConn=Server.CreateObject("ADODB.Connection")
oConn.open Application("../fpdb/database.mdb")
dim oRS
set oRS=server.CreateObject("ADODB.recordset")
oRS.Open "results", oConn, adOpenForawardOnly, adLockReadOnly,
adCmdTable
oRS.UpdateBatch
oRS("owner")=request.form("owner")
oRS("legal")=request.form("legal")
oRS("address1")=request.form("address1")
oRS("address2")=request.form("address2")
oRS("address3")=request.form("address3")
oRS("address4")=request.form("address4")
oRS("city")=request.form("city")
oRS("state")=request.form("state")
oRS("zip")=request.form("zip")
oRS("number")=request.form("number")
oRS("pmid")=request.form("pmid")
oRS("app_code")=request.form("app_code")
oRS("description")=request.form("description")
oRS("Email1")=request.form("Email1")
oRS("Email2")=request.form("Email2")
oRS("area_code")=request.form("area_code")
oRS("phone1")=request.form("phone1")
oRS("phone2")=request.form("phone2")
oRS("confnum")=request.form("confnum")
oRS.update
oRS.close
set oRS=Nothing
%>

Thanks if you can help!
 
Reply With Quote
 
 
 
 
chris leeds
Guest
Posts: n/a
 
      29th Oct 2003
you sure you've got "write" permissions on that database/ folder?

"PJ" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm getting connection errors when I try to post my web page to
> database? Can someone help me...Here's the error:
>
> ADODB.Connection error '800a0e7c'
>
> Parameter object is improperly defined. Inconsistent or incomplete
> information was provided.
>
> /taxapp/installments.asp, line 207
>
>
> Here's my code:
>
> <%
>
> set oConn=Server.CreateObject("ADODB.Connection")
> oConn.open Application("../fpdb/database.mdb")
> dim oRS
> set oRS=server.CreateObject("ADODB.recordset")
> oRS.Open "results", oConn, adOpenForawardOnly, adLockReadOnly,
> adCmdTable
> oRS.UpdateBatch
> oRS("owner")=request.form("owner")
> oRS("legal")=request.form("legal")
> oRS("address1")=request.form("address1")
> oRS("address2")=request.form("address2")
> oRS("address3")=request.form("address3")
> oRS("address4")=request.form("address4")
> oRS("city")=request.form("city")
> oRS("state")=request.form("state")
> oRS("zip")=request.form("zip")
> oRS("number")=request.form("number")
> oRS("pmid")=request.form("pmid")
> oRS("app_code")=request.form("app_code")
> oRS("description")=request.form("description")
> oRS("Email1")=request.form("Email1")
> oRS("Email2")=request.form("Email2")
> oRS("area_code")=request.form("area_code")
> oRS("phone1")=request.form("phone1")
> oRS("phone2")=request.form("phone2")
> oRS("confnum")=request.form("confnum")
> oRS.update
> oRS.close
> set oRS=Nothing
> %>
>
> Thanks if you can help!



 
Reply With Quote
 
Jim Buyens
Guest
Posts: n/a
 
      29th Oct 2003
The following line certainly looks suspicious.

oConn.open Application("../fpdb/database.mdb")

Even if you have your conenction string stored in teh
Applciation object, I doubt that "../fpdb/database.mdb" is
a valid application variable name. You probbly need
something like:

oConn.open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & _
server.mappath("../fpdb/database.mdb") & ";")

Also, because you coded:

oRS.Open "results", oConn, adOpenForawardOnly, _
adLockReadOnly, adCmdTable

Be sure to SSI-include the adovbs.inc file, or to define
the adOpenForawardOnly, adLockReadOnly, and adCmdTable
constants some other way.

Also, this looks a bit fishy:

oRS.UpdateBatch

If you're trying to insert a record, you need:

oRS.AddNew

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*


>-----Original Message-----
>I'm getting connection errors when I try to post my web

page to
>database? Can someone help me...Here's the error:
>
>ADODB.Connection error '800a0e7c'
>
>Parameter object is improperly defined. Inconsistent or

incomplete
>information was provided.
>
>/taxapp/installments.asp, line 207
>
>
>Here's my code:
>
><%
>
> set oConn=Server.CreateObject("ADODB.Connection")
> oConn.open Application("../fpdb/database.mdb")
> dim oRS
> set oRS=server.CreateObject("ADODB.recordset")
> oRS.Open "results", oConn, adOpenForawardOnly,

adLockReadOnly,
>adCmdTable
> oRS.UpdateBatch
> oRS("owner")=request.form("owner")
> oRS("legal")=request.form("legal")
> oRS("address1")=request.form("address1")
> oRS("address2")=request.form("address2")
> oRS("address3")=request.form("address3")
> oRS("address4")=request.form("address4")
> oRS("city")=request.form("city")
> oRS("state")=request.form("state")
> oRS("zip")=request.form("zip")
> oRS("number")=request.form("number")
> oRS("pmid")=request.form("pmid")
> oRS("app_code")=request.form("app_code")
> oRS("description")=request.form("description")
> oRS("Email1")=request.form("Email1")
> oRS("Email2")=request.form("Email2")
> oRS("area_code")=request.form("area_code")
> oRS("phone1")=request.form("phone1")
> oRS("phone2")=request.form("phone2")
> oRS("confnum")=request.form("confnum")
> oRS.update
> oRS.close
> set oRS=Nothing
> %>
>
>Thanks if you can help!
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 trapping for ADODB.Connection nod Microsoft Access Form Coding 1 31st Oct 2007 01:29 PM
ADODB.Connection Error =?Utf-8?B?TWlrZSBILg==?= Microsoft Excel Programming 1 7th Aug 2007 08:14 PM
ADODB connection error =?Utf-8?B?UGFvbGE=?= Microsoft Access 0 20th May 2006 09:50 AM
compile error... ADODB connection ina Microsoft Excel Programming 2 18th Apr 2006 05:41 PM
ADODB.Connection error '800a0e7c' PJ Microsoft ASP .NET 1 30th Oct 2003 01:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:05 AM.