Displaying images

Displaying images

am 02.05.2007 13:22:02 von d9839742

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")
Can any one help me please

Re: Displaying images

am 02.05.2007 13:40:15 von reb01501

d9839742 wrote:
> 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") Can any one help me please

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"

Re: Displaying images

am 02.05.2007 13:44:15 von reb01501

d9839742 wrote:
> 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") Can any one help me please

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"