Current location: Hot Scripts Forums » Programming Languages » ASP.NET » ASP and MS Access


ASP and MS Access

Reply
  #1 (permalink)  
Old 04-23-04, 09:18 PM
sireen1980 sireen1980 is offline
New Member
 
Join Date: Apr 2004
Location: California
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ASP and MS Access

Hi,
I am trying to build a FeedBack Page on my website, but i keep running an error requesting an Object, this is the error message
****************
ADODB.Connection error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

/FeedBack.asp, line 30
***********************

and i thought the object was objConn but still running an Error, Can you help me fix the problem, i have included the code below,
Thank you
Sireen



<%@LANGUAGE="VBSCRIPT" %>

<%


dim objConn
set objConn = server.createobject("ADODB.connection")
objConn.open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("/access_db/FeedBackdata.mdb") & ";"


%>

<html>
<head>
<title>FeedBack</title>

</head>

<body>
<table width="97%" border="1">
<tr>
<td><div align="center">Guest_ID</div></td>
<td><div align="center">Name</div></td>
<td><div align="center">Title</div></td>
<td><div align="center">Email</div></td>
<td><div align="center">Comments</div></td>
</tr>
<tr>
<td><div
align="center"><% objConn.Guest_ID.Value %></div></td>
<td><div
align="center"><% objConn.Name.Value %></div></td>
<td><div
align="center"><% objConn.Title.Value%></div></td>
<td><div
align="center"><% objConn.Email.Value%></div></td>
<td><div
align="center"><% objConn.Comments.Value%></div></td>
</tr>
</table>
</body>
</html>
Reply With Quote
  #2 (permalink)  
Old 04-25-04, 06:12 PM
techknow's Avatar
techknow techknow is offline
Newbie Coder
 
Join Date: Apr 2004
Location: Lomita, Ca
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Try Using the below code as your connection string...


<%@ Import Namespace="System.Data.OleDb" %>

<Script Runat="Server">

Sub Page_Load( s As Object, e As EventArgs )
Dim conlistings As OleDbConnection

conlistings = New OleDbConnection( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=c:\websites\data\whatever.mdb" )
conlistings.Open()
End Sub
__________________
Best Regards,

TechKnow
Head-Nerd-In-Charge
Advanced Tech Knowledge

Http://justoneguy.com

http://atkhost.com
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting MS Access contents on the Windows Desktop sandeep_mankoo ASP 1 05-08-04 11:14 PM
E-Mail from ASP form to MS Exchange rschrab ASP 0 04-20-04 04:41 PM
Posting contents of MS Access databse to Windows Desktop sandeep_mankoo JavaScript 1 04-19-04 05:13 AM
Coverting MS Access database to Text file sandeep_mankoo ASP 0 04-17-04 08:48 AM


All times are GMT -5. The time now is 02:53 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.