Groups | Blog | Home
all groups > inetserver asp db > may 2007 >

inetserver asp db : Displaying images


Bob Barrows [MVP]
5/2/2007 12:00:00 AM
[quoted text, click to view]

You opened "Rs", but then tried to read "rsRecordset"

Further: congratulations on using the native Jet OLE DB provider rather than
ODBC. However, you should avoid selstar:
http://www.aspfaq.com/show.asp?id=2096

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Bob Barrows [MVP]
5/2/2007 12:00:00 AM
[quoted text, click to view]

PS. This case was easy to figure out. In the future however, you should help
us help you by telling us exactly what error you are getting, avoiding
phrases like "getting an error", "not working", etc.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

d9839742
5/2/2007 4:22:02 AM
Here is my problem I am qute new to asp, I have an access database with a
text field pointing to the URL of the images I want to display.

The asp I'm using to try and display the images is below:
<%

Dim Conn
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Provider = "Microsoft.Jet.OLEDB.4.0;"

Conn.Open = "Data Source=" & Server.MapPath ("images.mdb")

Set Rs = Server.CreateObject("ADODB.Recordset")

strSQL = "SELECT * FROM Flags"
Response.Write rsRecordset("Image")


Set Rs = nothing
Set Conn = nothing

%>
I keep getting an error with this line Response.Write rsRecordset("Image")
AddThis Social Bookmark Button