T
terryljsmith
i am using access 2003 with frontpage 2003, and i have set up the
following query
SELECT [movies data].actor1
FROM [movies data]
WHERE [movies data].actor1 Like "a*";
UNION SELECT [movies data].actor2
FROM [movies data]
WHERE [movies data].actor2 Like "a*";
UNION SELECT [movies data].actor3
FROM [movies data]
WHERE [movies data].actor3 Like "a*";
UNION SELECT [movies data].actor4
FROM [movies data]
WHERE [movies data].actor4 Like "a*";
UNION SELECT [movies data].actor5
FROM [movies data]
WHERE [movies data].actor5 Like "a*";
i can view this query in access, but when i use the data results
wizard in frontpage i get the following error -
Database Results Wizard Error
Description: [Microsoft][ODBC Microsoft Access Driver] Too few
parameters. Expected 1.
Number: -2147217904 (0x80040E10)
Source: Microsoft OLE DB Provider for ODBC Drivers
i have checked, and double-checked the syntax, and i am completely
lost at this point. any, and all assistance would be appreciated.
i am using one table for all data
film name | actor1 | actor2 | actor3 | actor4 | actor 5 | and so
on.....
film 1 | tom | bob | susan | nick | steve |
film 2 | dick | tim | cathy | tom | paul |
my union query is to search for all actors by alpha, so you can link
to the film names which are associated with them. for example, i
would query "t" and get "tom", and then my results for "tom" would be
a listing of "films 1 & 2".
i use several other tables which have one item and several categories
associated with them, and i would like to be able to union these
categories as they related to the primary items. the query works fine
in access, but i will not show up when published in an asp page within
frontpage. i get the aformentioned error when processing the query.
and i have no idea why. all standard queries work within frontpage,
it seems that "union" queries do not, and that is my quandry.
here is the asp page code from frontpage.
<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>actorsa</title>
</head>
<body>
<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>actor1</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-
columnnames="actor1" s-
columntypes="202" s-dataconnection="mov&ment" 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="Copy of movies actor a" s-displaycolumns="actor1" s-
criteria s-order s-sql="SELECT * FROM "Copy of movies actor
a"" 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" 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 --><!--#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 ""Copy of movies actor a"""
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=1 align=""LEFT"" width=""100%"">No
records returned.</td></tr>"
fp_sDataConn="mov&ment"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&actor1=202&"
fp_iDisplayCols=1
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<td>
<!--webbot bot="DatabaseResultColumn" s-
columnnames="actor1" s-
column="actor1" b-tableformat="TRUE" b-hashtml="FALSE" b-
makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>actor1<font
size="-1">&gt;&gt;</font>" startspan --><
%=FP_FieldVal(fp_rs,"actor1")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="15367" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-
tableformat="TRUE" b-
menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="5"
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><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>" startspan --><!--
#include file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></
tbody>
</table>
<form BOTID="1" METHOD="POST" action="actorsa.asp">
<input type="hidden" name="fpdbr_1_PagingMove" value=" |<
">
</form>
</body>
</html>
and it reads greek to me.......
thanks,
terryl
following query
SELECT [movies data].actor1
FROM [movies data]
WHERE [movies data].actor1 Like "a*";
UNION SELECT [movies data].actor2
FROM [movies data]
WHERE [movies data].actor2 Like "a*";
UNION SELECT [movies data].actor3
FROM [movies data]
WHERE [movies data].actor3 Like "a*";
UNION SELECT [movies data].actor4
FROM [movies data]
WHERE [movies data].actor4 Like "a*";
UNION SELECT [movies data].actor5
FROM [movies data]
WHERE [movies data].actor5 Like "a*";
i can view this query in access, but when i use the data results
wizard in frontpage i get the following error -
Database Results Wizard Error
Description: [Microsoft][ODBC Microsoft Access Driver] Too few
parameters. Expected 1.
Number: -2147217904 (0x80040E10)
Source: Microsoft OLE DB Provider for ODBC Drivers
i have checked, and double-checked the syntax, and i am completely
lost at this point. any, and all assistance would be appreciated.
i am using one table for all data
film name | actor1 | actor2 | actor3 | actor4 | actor 5 | and so
on.....
film 1 | tom | bob | susan | nick | steve |
film 2 | dick | tim | cathy | tom | paul |
my union query is to search for all actors by alpha, so you can link
to the film names which are associated with them. for example, i
would query "t" and get "tom", and then my results for "tom" would be
a listing of "films 1 & 2".
i use several other tables which have one item and several categories
associated with them, and i would like to be able to union these
categories as they related to the primary items. the query works fine
in access, but i will not show up when published in an asp page within
frontpage. i get the aformentioned error when processing the query.
and i have no idea why. all standard queries work within frontpage,
it seems that "union" queries do not, and that is my quandry.
here is the asp page code from frontpage.
<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>actorsa</title>
</head>
<body>
<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>actor1</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-
columnnames="actor1" s-
columntypes="202" s-dataconnection="mov&ment" 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="Copy of movies actor a" s-displaycolumns="actor1" s-
criteria s-order s-sql="SELECT * FROM "Copy of movies actor
a"" 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" 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 --><!--#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 ""Copy of movies actor a"""
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=1 align=""LEFT"" width=""100%"">No
records returned.</td></tr>"
fp_sDataConn="mov&ment"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&actor1=202&"
fp_iDisplayCols=1
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<tr>
<td>
<!--webbot bot="DatabaseResultColumn" s-
columnnames="actor1" s-
column="actor1" b-tableformat="TRUE" b-hashtml="FALSE" b-
makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>actor1<font
size="-1">&gt;&gt;</font>" startspan --><
%=FP_FieldVal(fp_rs,"actor1")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="15367" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-
tableformat="TRUE" b-
menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="5"
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><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>" startspan --><!--
#include file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></
tbody>
</table>
<form BOTID="1" METHOD="POST" action="actorsa.asp">
<input type="hidden" name="fpdbr_1_PagingMove" value=" |<
">
</form>
</body>
</html>
and it reads greek to me.......
thanks,
terryl