S
SP
Hi all this Damsel is up against a wall and getting ready to bang my head.
I am using FrontPage 2003 and Access 2003. I have created a database with a
photo (Employees). I used the FrontPage 2003 Database results wizard to
have it pull the information to post on our intranet. I could not get the
image to show, so I searched the Microsoft Knowledge Base, finding How to
display a picture by using an Access database in FrontPage 2003. I followed
the steps and things fell into place, until I followed the step: Remove the
quotation marks from the start and end of the field value. When I did this,
I get this error message:
ADODB.Recordset error '800a0cc1'
Item cannot be found in the collection corresponding to the requested name
or ordinal.
G:\WEBS\INTRANETWEB\DATABASE\../_fpclass/fpdblib.inc, line 48
When I put the quotes back, I have the photo field with a small box with a
red X. I know I am almost there. What do I need to do to get the page the
to show the images for the employees.
Here is my code from my .asp page that is showing the results from the
Database Results Wizard. Please HELP!!!
<html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not
Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Employee Photo Gallery</title>
<meta name="Microsoft Theme" content="compass 1011, default">
<meta name="Microsoft Border" content="l, default">
</head>
<body>
<table width="100%">
<thead>
<tr>
<th ALIGN="LEFT"><b>Last Name</b></th>
<th ALIGN="LEFT"><b>First Name</b></th>
<th ALIGN="LEFT"><b>Title</b></th>
<th ALIGN="LEFT"><b>Studio</b></th>
<th ALIGN="LEFT"><b>Photo</b></th>
<th ALIGN="LEFT"><b>Extension</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-columntypes="202,202,202,202,202,202"
s-dataconnection="LBDGPhotos" b-tableformat="TRUE" b-menuformat="FALSE"
s-menuchoice s-menuvalue b-tableborder="FALSE" b-tableexpand="TRUE"
b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE"
i-listformat="5" b-makeform="FALSE" s-recordsource s-displaycolumns="Last
Name,First Name,Title,Studio,Photo,Extension" s-criteria s-order
s-sql="SELECT * FROM [LBDG Employees] ORDER BY "First Name" DESC"
b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields
s-norecordsfound="No records returned." i-maxrecords="0" i-groupsize="0"
botid="0" u-dblib="../_fpclass/fpdblib.inc"
u-dbrgn1="../_fpclass/fpdbrgn1.inc" u-dbrgn2="../_fpclass/fpdbrgn2.inc"
tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00"
width="100%"><font color="#000000">This is the
start of a Database Results region.</font></td></tr>"
startspan --><!--#include file="../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database
Results component on this page is unable to display database content. The
page must have a filename ending in '.asp', and the web must be hosted on a
server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM [LBDG Employees] ORDER BY ""First Name"" DESC"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=6 align=""LEFT"" width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="LBDGPhotos"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&First Name=202&Last
Name=202&Title=202&Studio=202&Photo=202&Extension=202&"
fp_iDisplayCols=6
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="55777" --><tr>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-column="Last Name" b-tableformat="TRUE"
b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat
preview="<font size="-1">&lt;&lt;</font>Last
Name<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Last Name")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="17739" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-column="First Name"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>First Name<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"First Name")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="27141" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-column="Title" b-tableformat="TRUE"
b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat
preview="<font
size="-1">&lt;&lt;</font>Title<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Title")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="8773" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-column="Studio" b-tableformat="TRUE"
b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat
preview="<font
size="-1">&lt;&lt;</font>Studio<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Studio")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="17086" --></td>
<td><img border="0" src="<%=FP_FieldLink(fp_rs, Photo)%>"></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-column="Extension" b-tableformat="TRUE"
b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat
preview="<font
size="-1">&lt;&lt;</font>Extension<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Extension")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="21582" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="../_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY" preview="<tr><td colspan=64
bgcolor="#FFFF00" width="100%"><font
color="#000000">This is the end of a Database Results
region.</font></td></tr>" startspan --><!--#include
file="../_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="56926" --></tbody>
</table>
</body></html>
I am using FrontPage 2003 and Access 2003. I have created a database with a
photo (Employees). I used the FrontPage 2003 Database results wizard to
have it pull the information to post on our intranet. I could not get the
image to show, so I searched the Microsoft Knowledge Base, finding How to
display a picture by using an Access database in FrontPage 2003. I followed
the steps and things fell into place, until I followed the step: Remove the
quotation marks from the start and end of the field value. When I did this,
I get this error message:
ADODB.Recordset error '800a0cc1'
Item cannot be found in the collection corresponding to the requested name
or ordinal.
G:\WEBS\INTRANETWEB\DATABASE\../_fpclass/fpdblib.inc, line 48
When I put the quotes back, I have the photo field with a small box with a
red X. I know I am almost there. What do I need to do to get the page the
to show the images for the employees.
Here is my code from my .asp page that is showing the results from the
Database Results Wizard. Please HELP!!!
<html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not
Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Employee Photo Gallery</title>
<meta name="Microsoft Theme" content="compass 1011, default">
<meta name="Microsoft Border" content="l, default">
</head>
<body>
<table width="100%">
<thead>
<tr>
<th ALIGN="LEFT"><b>Last Name</b></th>
<th ALIGN="LEFT"><b>First Name</b></th>
<th ALIGN="LEFT"><b>Title</b></th>
<th ALIGN="LEFT"><b>Studio</b></th>
<th ALIGN="LEFT"><b>Photo</b></th>
<th ALIGN="LEFT"><b>Extension</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-columntypes="202,202,202,202,202,202"
s-dataconnection="LBDGPhotos" b-tableformat="TRUE" b-menuformat="FALSE"
s-menuchoice s-menuvalue b-tableborder="FALSE" b-tableexpand="TRUE"
b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE"
i-listformat="5" b-makeform="FALSE" s-recordsource s-displaycolumns="Last
Name,First Name,Title,Studio,Photo,Extension" s-criteria s-order
s-sql="SELECT * FROM [LBDG Employees] ORDER BY "First Name" DESC"
b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields
s-norecordsfound="No records returned." i-maxrecords="0" i-groupsize="0"
botid="0" u-dblib="../_fpclass/fpdblib.inc"
u-dbrgn1="../_fpclass/fpdbrgn1.inc" u-dbrgn2="../_fpclass/fpdbrgn2.inc"
tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00"
width="100%"><font color="#000000">This is the
start of a Database Results region.</font></td></tr>"
startspan --><!--#include file="../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database
Results component on this page is unable to display database content. The
page must have a filename ending in '.asp', and the web must be hosted on a
server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM [LBDG Employees] ORDER BY ""First Name"" DESC"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=6 align=""LEFT"" width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="LBDGPhotos"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&First Name=202&Last
Name=202&Title=202&Studio=202&Photo=202&Extension=202&"
fp_iDisplayCols=6
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="55777" --><tr>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-column="Last Name" b-tableformat="TRUE"
b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat
preview="<font size="-1">&lt;&lt;</font>Last
Name<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Last Name")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="17739" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-column="First Name"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>First Name<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"First Name")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="27141" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-column="Title" b-tableformat="TRUE"
b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat
preview="<font
size="-1">&lt;&lt;</font>Title<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Title")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="8773" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-column="Studio" b-tableformat="TRUE"
b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat
preview="<font
size="-1">&lt;&lt;</font>Studio<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Studio")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="17086" --></td>
<td><img border="0" src="<%=FP_FieldLink(fp_rs, Photo)%>"></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="First Name,Last
Name,Title,Studio,Photo,Extension" s-column="Extension" b-tableformat="TRUE"
b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat
preview="<font
size="-1">&lt;&lt;</font>Extension<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Extension")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="21582" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="../_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY" preview="<tr><td colspan=64
bgcolor="#FFFF00" width="100%"><font
color="#000000">This is the end of a Database Results
region.</font></td></tr>" startspan --><!--#include
file="../_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="56926" --></tbody>
</table>
</body></html>