このコードを使用して、データベースから特定の値を選択しようとしました:
Dim rs, data, lo
data = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
Server.MapPath("games.mdb")
rs = Server.CreateObject("ADODB.Recordset")
rs.open("select * FROM [index] where ID1=1 ", data)
Image1.ImageUrl = "images/" + rs("url").ToString
lo =rs("url")
rs.MoveNext()
rs.Close()
実行すると、次のようになります。
show
System.__ComObject