KARSIYAKALI
Programmer
when I read data from a database I how can reach all of them. I have the following code and when I run it it gives
ADODB.Recordset (0x800A0CC1) error.
Dim oConn
Dim filePath
Dim rs
filePath = Server.MapPath("data.mdb")
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath
SQL = "SELECT tarih FROM veri WHERE Yazar='Aragorn'"
set dizi = oConn.execute(SQL)
x = dizi(1).
%>
but it works when I write dizi(0) instead of dizi(1). I am also sure that there are at least two datas where yazar is Aragorn.
wating for any solution.
ADODB.Recordset (0x800A0CC1) error.
Dim oConn
Dim filePath
Dim rs
filePath = Server.MapPath("data.mdb")
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath
SQL = "SELECT tarih FROM veri WHERE Yazar='Aragorn'"
set dizi = oConn.execute(SQL)
x = dizi(1).
%>
but it works when I write dizi(0) instead of dizi(1). I am also sure that there are at least two datas where yazar is Aragorn.
wating for any solution.