FrontPage and Access

J

JB

I have a website that has been developed using FrontPage 2003 and Access.
Until recently it worked perfectly. Now, i receive the following error
message when trying to view it:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'FP_FieldVal'

/pageasptest.asp, line 49

All my asp coding is generated by the FrontPage wizard.

Does anybody know what the problem would be?

Thanks
 
T

Thomas A. Rowe

What type of data is being entered and what it the field type in the database?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
J

JB

I have created a single database with only 1 column 'Field1'

There are 6 entries in the database. All entries are text.

I only want the page to display the 6 entries.

(I will eventually be using a database with a lot more entries).
 
T

Thomas A. Rowe

What is on line 49?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
J

JB

Hi Thomas

Line 49 is (I believe) fp_sNoRecords="<tr><td colspan=1 align=""LEFT""
width=""100%"">No records

Below is the full code.

Thanks

John

<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>Field1</title>
</head>

<body>

<p> </p>
<p> </p>
<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>ClubName</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-columnnames="ClubName"
s-columntypes="202" s-dataconnection="asptest" b-tableformat="TRUE"
b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE"
b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE"
b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE"
s-recordsource="qry_clubs" s-displaycolumns="ClubName" s-criteria s-order
s-sql="SELECT * FROM qry_clubs" b-procedure="FALSE" clientside
suggestedext="asp" s-defaultfields s-norecordsfound="No records returned."
i-maxrecords="256" 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. The page must
be fetched from a web server with a web browser to display correctly; the
current web is stored on your local disk or network.</font></td></tr>"
startspan -->
<% 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 qry_clubs"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=1 align=""LEFT"" width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="asptest"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&ClubName=202&"
fp_iDisplayCols=1
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>

<!--webbot bot="DatabaseRegionStart" endspan --><tr>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ClubName"
s-column="ClubName" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>ClubName<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"ClubName")%><!--webbot bot="DatabaseResultColumn"
endspan --></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 -->
<!--webbot bot="DatabaseRegionEnd" endspan --></tbody>
</table>

</body>

</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top