G
Guest
First off I am not sure of the best way to save a picture
in an Access Database Table. So any insight to this would
be helpful.
Second In the code below I have a Details webpage that
comes up from the "Item Number" that is picked from the
previous page. All text comes up fine in the "Details
Page" but I am not sure of the proper coding to display
the corresponding Picture. Any help would be greatly
appreciated and if more explanation is needed I would be
glad to give it via email.
Here goes: There is a page before this that selects
the "Item Number" and uses it in a hyperlink to the "Herb
Details" Page which this code is for
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
<meta name="Microsoft Theme" content="ricepapr 1011,
default">
</head>
<body>
<%
Dim conn, ItemNum, ConnectionString, Query,
HDetails 'Command Object
ConnectionString = "Driver={Microsoft Access Driver
(*.mdb)};Dbq=c:\Inetpub\wwwroot\fpdb\Customers2000_be.mdb;
Uid=admin;Pwd="
set conn = server.createobject("adodb.connection")
conn.open ConnectionString
ItemNum = (Request("[Item Number]"))
If ItemNum = " " Then
Response.Write "No Item Number Was Sent.<p>"
else
Query = "SELECT * FROM tblHerbs WHERE [Item Number]= '" &
ItemNum & "'"
Set HDetails = conn.Execute(Query)
%>
<tr>
<td><%=HDEtails("Item Number")%> </td>
<td><%=HDetails("Product Name")%> </td>
**I HAVE A FIELD CALLED "PICTURES" THAT I WOULD LIKE TO
ADD TO DISPLAY THE CORRESPONDING PICTURE HERE**
<td><%=HDetails("Magical")%> </td
in an Access Database Table. So any insight to this would
be helpful.
Second In the code below I have a Details webpage that
comes up from the "Item Number" that is picked from the
previous page. All text comes up fine in the "Details
Page" but I am not sure of the proper coding to display
the corresponding Picture. Any help would be greatly
appreciated and if more explanation is needed I would be
glad to give it via email.
Here goes: There is a page before this that selects
the "Item Number" and uses it in a hyperlink to the "Herb
Details" Page which this code is for
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
<meta name="Microsoft Theme" content="ricepapr 1011,
default">
</head>
<body>
<%
Dim conn, ItemNum, ConnectionString, Query,
HDetails 'Command Object
ConnectionString = "Driver={Microsoft Access Driver
(*.mdb)};Dbq=c:\Inetpub\wwwroot\fpdb\Customers2000_be.mdb;
Uid=admin;Pwd="
set conn = server.createobject("adodb.connection")
conn.open ConnectionString
ItemNum = (Request("[Item Number]"))
If ItemNum = " " Then
Response.Write "No Item Number Was Sent.<p>"
else
Query = "SELECT * FROM tblHerbs WHERE [Item Number]= '" &
ItemNum & "'"
Set HDetails = conn.Execute(Query)
%>
<tr>
<td><%=HDEtails("Item Number")%> </td>
<td><%=HDetails("Product Name")%> </td>
**I HAVE A FIELD CALLED "PICTURES" THAT I WOULD LIKE TO
ADD TO DISPLAY THE CORRESPONDING PICTURE HERE**
<td><%=HDetails("Magical")%> </td