union query not displaying?

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&amp;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 &quot;Copy of movies actor
a&quot;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;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.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" 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="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;actor1&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD
VALIGN=MIDDLE COLSPAN=64&gt;&lt;NOBR&gt;&lt;INPUT TYPE=Button
VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot;
&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;
&quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt;
[1/5]&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;" 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=" |&lt;
">
</form>

</body>

</html>

and it reads greek to me.......

thanks,

terryl
 
M

Michel Walsh

Well, I don't really know why it does not work, note that your query has one
field, field with the name called actor1 (it got it from the first SELECT
statement), and it is NOT [film name]. Your front page may try to look for
[film name] but the query only find actor1, as valid field. Why not:


SEELCT [film name]
FROM [movies data]
WHERE (actor1 LIKE "a*) OR (actor2 LIKE "a*") OR ...



Hoping it may help,
Vanderghast, Access MVP


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&amp;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 &quot;Copy of movies actor
a&quot;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;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.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" 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="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;actor1&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD
VALIGN=MIDDLE COLSPAN=64&gt;&lt;NOBR&gt;&lt;INPUT TYPE=Button
VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot;
&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;
&quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt;
[1/5]&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;" 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=" |&lt;
">
</form>

</body>

</html>

and it reads greek to me.......

thanks,

terryl
 
M

Michel Walsh

Note that your table is not normalized; while it is good for presentation, a
somehow better approach would be to have a all vertical table:


FilmName Actor ' fields
"American Wedding", "Jason Biggs"
"American Wedding", "Seann William Scott"
"American Wedding", "Alyson Hannigan"
"American Wedding", "Eddie Kaye Thomas"
"American Wedding", "Thomas Ian Nicholas"
"American Wedding", "January Jones"
"American Wedding", "Eugene Levy"
"American Wedding", "Fred Willard"

.... data sample...


and then,

SELECT FilmName
FROM normalizedTable
WHERE Actor LIKE "A*"

would do. As for horizontal presentation, you may use a crosstab (after
having ranked the actors, by name or otherwise).



Hoping it may help,
Vanderghast, Access MVP


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&amp;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 &quot;Copy of movies actor
a&quot;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;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.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" 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="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;actor1&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD
VALIGN=MIDDLE COLSPAN=64&gt;&lt;NOBR&gt;&lt;INPUT TYPE=Button
VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot;
&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;
&quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt;
[1/5]&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;" 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=" |&lt;
">
</form>

</body>

</html>

and it reads greek to me.......

thanks,

terryl
 
T

terryljsmith

Well, I don't really know why it does not work, note that your query has one
field, field with the name called actor1 (it got it from the first SELECT
statement), and it is NOT [film name]. Your front page may try to look for
[film name] but the query only find actor1, as valid field. Why not:

SEELCT [film name]
FROM [movies data]
WHERE (actor1 LIKE "a*) OR (actor2 LIKE "a*") OR ...

Hoping it may help,
Vanderghast, Access MVP


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.

<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>

<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&amp;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 &quot;Copy of movies actor
a&quot;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;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.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" 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="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;actor1&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD
VALIGN=MIDDLE COLSPAN=64&gt;&lt;NOBR&gt;&lt;INPUT TYPE=Button
VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot;
&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;
&quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt;
[1/5]&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;" 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=" |&lt;
">
</form>

and it reads greek to me.......

terryl


thanks for your reply, but i'm trying to compile an aggregate column
list of the actors, which i can get with the union query, i just get
the error from frontpage when publishing.......

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

it's the error that i can't seem to get around....

terryl
 
M

Michel Walsh

Is your Access file saved in an OLD format? It should. It may be possible
that you saved it under a new format (Access 2003 format) that is
un-readable by your FrontPage version.


Vanderghast, Access MVP



Well, I don't really know why it does not work, note that your query has
one
field, field with the name called actor1 (it got it from the first SELECT
statement), and it is NOT [film name]. Your front page may try to look
for
[film name] but the query only find actor1, as valid field. Why not:

SEELCT [film name]
FROM [movies data]
WHERE (actor1 LIKE "a*) OR (actor2 LIKE "a*") OR ...

Hoping it may help,
Vanderghast, Access MVP


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.

<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>

<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&amp;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 &quot;Copy of movies actor
a&quot;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;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.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" 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
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="55837" --
<tr>
<td>
<!--webbot bot="DatabaseResultColumn" s-
columnnames="actor1" s-
column="actor1" b-tableformat="TRUE" b-hashtml="FALSE" b-
makelink="FALSE" clientside b-MenuFormat preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;actor1&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD
VALIGN=MIDDLE COLSPAN=64&gt;&lt;NOBR&gt;&lt;INPUT TYPE=Button
VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot;
&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;
&quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt;
[1/5]&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;" 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=" |&lt;
">
</form>

and it reads greek to me.......

terryl


thanks for your reply, but i'm trying to compile an aggregate column
list of the actors, which i can get with the union query, i just get
the error from frontpage when publishing.......

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

it's the error that i can't seem to get around....

terryl
 
T

terryljsmith

Is your Access file saved in an OLD format? It should. It may be possible
that you saved it under a new format (Access 2003 format) that is
un-readable by your FrontPage version.

Vanderghast, Access MVP


Well, I don't really know why it does not work, note that your query has
one
field, field with the name called actor1 (it got it from the first SELECT
statement), and it is NOT [film name]. Your front page may try to look
for
[film name] but the query only find actor1, as valid field. Why not:
SEELCT [film name]
FROM [movies data]
WHERE (actor1 LIKE "a*) OR (actor2 LIKE "a*") OR ...
Hoping it may help,
Vanderghast, Access MVP

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&amp;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 &quot;Copy of movies actor
a&quot;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;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.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" 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
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="55837" --
<tr>
<td>
<!--webbot bot="DatabaseResultColumn" s-
columnnames="actor1" s-
column="actor1" b-tableformat="TRUE" b-hashtml="FALSE" b-
makelink="FALSE" clientside b-MenuFormat preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;actor1&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" 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="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD
VALIGN=MIDDLE COLSPAN=64&gt;&lt;NOBR&gt;&lt;INPUT TYPE=Button
VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot;
&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;
&quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt;
[1/5]&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;" 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=" |&lt;
">
</form>
</body>
</html>
and it reads greek to me.......
thanks,
terryl
thanks for your reply, but i'm trying to compile an aggregate column
list of the actors, which i can get with the union query, i just get
the error from frontpage when publishing.......
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
it's the error that i can't seem to get around....


the access 2003 is in the access 2000 format, and frontpage is
2003..... thanks for your help, i was hoping to not have to set up
the table as you suggested, but all indicators say that i just may
have to.....

terry
 

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