If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Connecting using Frontpage connection string

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-21-07, 18:47
sansoneee sansoneee is offline
Registered User
 
Join Date: Dec 2006
Posts: 1
Connecting using Frontpage connection string

Hi all,

I'm trying to connect to a access DB using the Access connection String. I have followed a tutorial and can connect to the database. The thing is when i set the recordset it and try and display data it bring up a error.

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inetpub\wwwroot\test2\fpdb\database1.mdb (this is me testing connection)

---error part---
Microsoft VBScript runtime error '800a01a8'

Object required: 'Provider=Microsoft.J'

/test2/new2.asp, line 18


I know i have connected to the DB as i can response.write the connection and it displays the connection. I just ju st cant show resluts.
Can anyone help?

here is my code:

Dim rs
Dim objconn: objconn=Application("database1_ConnectionString")

response.write(objconn)


set rs = objconn.execute("SELECT * FROM RESULTS")

dim name

name = rs("Name")

response.write(Name)
/code

THanks in advance Sanson
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

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