I
Ian
I wonder if anyone can help with a minor issue I am having with FP2003 and
the DBRW. I have a DBR on an ASP page that takes a value generated in a
previous page and displays records based on the variables passed through a
hyperlink. The DBR uses the following code:
SELECT DISTINCTROW Dial.Date, Sum(Dial.Cost) AS [Sum Of Cost], Count(*) AS
[Count Of Dial] FROM Dial WHERE (((Format$([Dial].[Date],'mmmm
yyyy'))="::MONTHYEAR::")) GROUP BY Dial.Date,
Year([Dial].[Date])*12+DatePart('m',[Dial].[Date])-1;
The value for the variable MONTHYEAR is normally in the format: APRIL 2005.
When I hyperlink to the page the value is passed through, I have confirmed
that the MONTHYEAR field has been populated by displaying the value via a VB
script. The DBR returns the following error:
Database Results Wizard Error
Your page contains a query with user input parameters that could not be
resolved.
This could happen if your DatabaseRegionStart webbot has an empty or missing
s-columnnames or s-columntypes attributes.
You may need to read Microsoft Knowledge Base Article 817029.
I've followed the instructions in the above article but it does not seem to
make any difference and the DatabaseRegionStart looks OK:
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="56191" --><tr>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Date,Sum_Of_Cost,Count_Of_Dial" s-column="Date"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Date<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Date")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="3267" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Date,Sum_Of_Cost,Count_Of_Dial" s-column="Sum_Of_Cost"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Sum_Of_Cost<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Sum_Of_Cost")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="31984" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Date,Sum_Of_Cost,Count_Of_Dial" s-column="Count_Of_Dial"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Count_Of_Dial<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Count_Of_Dial")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="29321" --></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>
The problem seems to be with the fact that the DBR ignores the
passed-through value and reports a blank value. I have tested the script in
Access and it works fine.....Any ideas?
Thanks
Ian
the DBRW. I have a DBR on an ASP page that takes a value generated in a
previous page and displays records based on the variables passed through a
hyperlink. The DBR uses the following code:
SELECT DISTINCTROW Dial.Date, Sum(Dial.Cost) AS [Sum Of Cost], Count(*) AS
[Count Of Dial] FROM Dial WHERE (((Format$([Dial].[Date],'mmmm
yyyy'))="::MONTHYEAR::")) GROUP BY Dial.Date,
Year([Dial].[Date])*12+DatePart('m',[Dial].[Date])-1;
The value for the variable MONTHYEAR is normally in the format: APRIL 2005.
When I hyperlink to the page the value is passed through, I have confirmed
that the MONTHYEAR field has been populated by displaying the value via a VB
script. The DBR returns the following error:
Database Results Wizard Error
Your page contains a query with user input parameters that could not be
resolved.
This could happen if your DatabaseRegionStart webbot has an empty or missing
s-columnnames or s-columntypes attributes.
You may need to read Microsoft Knowledge Base Article 817029.
I've followed the instructions in the above article but it does not seem to
make any difference and the DatabaseRegionStart looks OK:
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="56191" --><tr>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Date,Sum_Of_Cost,Count_Of_Dial" s-column="Date"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Date<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Date")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="3267" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Date,Sum_Of_Cost,Count_Of_Dial" s-column="Sum_Of_Cost"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Sum_Of_Cost<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Sum_Of_Cost")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="31984" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Date,Sum_Of_Cost,Count_Of_Dial" s-column="Count_Of_Dial"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Count_Of_Dial<font
size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Count_Of_Dial")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="29321" --></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>
The problem seems to be with the fact that the DBR ignores the
passed-through value and reports a blank value. I have tested the script in
Access and it works fine.....Any ideas?
Thanks
Ian