testare
Programmer
- Jan 21, 2005
- 127
Error message that i get i
ADODB.Field (0x80020009)
Either BOF or EOF is True, or the current record has been ...
In table1 there is a primary key on ID.
In table2 there is no primary key on ID.
If i remove the loop then it works
I've tried for hours but yet not solved this problem.
What i'm i doing wrong?
ADODB.Field (0x80020009)
Either BOF or EOF is True, or the current record has been ...
In table1 there is a primary key on ID.
In table2 there is no primary key on ID.
If i remove the loop then it works
Code:
Set Conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("db/support.mdb")
sSQL = "SELECT A.*, B.* FROM TABLE1 A LEFT JOIN TABLE 2 B ON A.ID = B.ID WHERE A.ID=58"
Set rs = Conn.Execute(sSQL)
While Not rs.EOF
Response.Write ("test")
rs.MoveNext
Wend
I've tried for hours but yet not solved this problem.
What i'm i doing wrong?