J
Jose Olivas
I get an error for a results page made by FP 2003 with an access 2003 DB.
The results page is from a query I created on Access and most all of my
other queries seem to be coming out fine.
Here is my message and code:
Database Results Error
Description: Syntax error in query. Incomplete query clause.
Number: -2147217900 (0x80040E14)
Source: Microsoft JET Database Engine
My code is as follows:
<tbody>
<!--webbot bot="DatabaseRegionStart"
s-columnnames="Name,SumOfPoints,RaceYear" s-columntypes="202,5,2"
s-dataconnection="prestigePoints" 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="TRUE" s-recordsource="2004 Standings"
s-displaycolumns="Name,SumOfPoints,RaceYear" s-criteria s-order
s-sql="SELECT * FROM "2004 Standings"" b-procedure="FALSE"
clientside suggestedext="asp" s-defaultfields s-norecordsfound="No records
returned." i-maxrecords="256" i-groupsize="5" botid="0"
u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY" startspan
preview="<tr><td colspan=64 bgcolor="#FFFF00"
width="100%"><font color="#000000">This is the
start of a Database Results
region.</font></td></tr>" --><!--#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 ""2004 Standings"""
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=3 align=""LEFT"" width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="prestigePoints"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&Name=202&SumOfPoints=5&RaceYear=2&"
fp_iDisplayCols=3
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="40214" -->
<tr>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Name,SumOfPoints,RaceYear" s-column="Name"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Name<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Name")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="3900" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Name,SumOfPoints,RaceYear" s-column="SumOfPoints"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>SumOfPoints<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"SumOfPoints")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="33403" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Name,SumOfPoints,RaceYear" s-column="RaceYear"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>RaceYear<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"RaceYear")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="15055" -->
</td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="5"
clientside tag="TBODY" startspan preview="<tr><td colspan=64
bgcolor="#FFFF00" width="100%"><font
color="#000000">This is the end of a Database Results
region.</font></td></tr><TR><TD VALIGN=MIDDLE
COLSPAN=64><NOBR><INPUT TYPE=Button VALUE=" |<
"><INPUT TYPE=Button VALUE=" < "><INPUT
TYPE=Button VALUE=" > "><INPUT TYPE=Button
VALUE=" >| ">
[1/5]</NOBR><BR></td></tr>" --><!--#include
file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" -->
</tbody>
</table>
The results page is from a query I created on Access and most all of my
other queries seem to be coming out fine.
Here is my message and code:
Database Results Error
Description: Syntax error in query. Incomplete query clause.
Number: -2147217900 (0x80040E14)
Source: Microsoft JET Database Engine
My code is as follows:
<tbody>
<!--webbot bot="DatabaseRegionStart"
s-columnnames="Name,SumOfPoints,RaceYear" s-columntypes="202,5,2"
s-dataconnection="prestigePoints" 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="TRUE" s-recordsource="2004 Standings"
s-displaycolumns="Name,SumOfPoints,RaceYear" s-criteria s-order
s-sql="SELECT * FROM "2004 Standings"" b-procedure="FALSE"
clientside suggestedext="asp" s-defaultfields s-norecordsfound="No records
returned." i-maxrecords="256" i-groupsize="5" botid="0"
u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY" startspan
preview="<tr><td colspan=64 bgcolor="#FFFF00"
width="100%"><font color="#000000">This is the
start of a Database Results
region.</font></td></tr>" --><!--#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 ""2004 Standings"""
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=3 align=""LEFT"" width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="prestigePoints"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&Name=202&SumOfPoints=5&RaceYear=2&"
fp_iDisplayCols=3
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="40214" -->
<tr>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Name,SumOfPoints,RaceYear" s-column="Name"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Name<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Name")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="3900" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Name,SumOfPoints,RaceYear" s-column="SumOfPoints"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>SumOfPoints<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"SumOfPoints")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="33403" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Name,SumOfPoints,RaceYear" s-column="RaceYear"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>RaceYear<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"RaceYear")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="15055" -->
</td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="5"
clientside tag="TBODY" startspan preview="<tr><td colspan=64
bgcolor="#FFFF00" width="100%"><font
color="#000000">This is the end of a Database Results
region.</font></td></tr><TR><TD VALIGN=MIDDLE
COLSPAN=64><NOBR><INPUT TYPE=Button VALUE=" |<
"><INPUT TYPE=Button VALUE=" < "><INPUT
TYPE=Button VALUE=" > "><INPUT TYPE=Button
VALUE=" >| ">
[1/5]</NOBR><BR></td></tr>" --><!--#include
file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" -->
</tbody>
</table>