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 > Open DBF file in ASP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-02-04, 03:01
sr_aneesh sr_aneesh is offline
Registered User
 
Join Date: Oct 2004
Posts: 2
Open DBF file in ASP

I wanted to display records from a dbf file through ASP Programm. the code i wrote is as follows :


<%
Function OpenDBFConn(Path)
Dim Conn
Set Conn = CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Path & ";" & _
"Extended Properties=""DBASE IV;"";"
Set OpenDBFConn = Conn
End Function

Dim DBConn
Set DBConn = OpenDBFConn("f:\seaworld")

Dim rs
Set rs = DBConn.Execute("Select * from [address#DBF]")

while not rs.eof
Response.Write (rs(1))&"<br>"
rs.movenext
wend



%>

Error Displayed in Browser is :

Error Type:
Microsoft JET Database Engine (0x80004005)
Unspecified error

Kindly solve my query
Thanx in Advance
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