473,387 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

nested repeat region

I'm trying to use code I found on:
http://www.dmxzone.com/ShowDetail.as...d=394&offset=5

I've used it before without issue, but this time it's not working. The
nested records are not being filtered. They are all displayed on the very
first request. <%=FilterParam%> shows that the correct KeyNumber is
requested, but still all records are displayed.
Can anyone see what I'm missing?
thanks!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<%
While ((Repeat1__numRows <> 0) AND (NOT rsItemKey.EOF))
%>
<%=(rsItemKey.Fields.Item("Descrip").Value)%><br >
#<%=(rsItemKey.Fields.Item("KeyNumber").Value)%>&n bsp;&nbsp;&nbsp;&nbsp;Reg
Price&nbsp;<%=
FormatCurrency((rsItemKey.Fields.Item("RegPrice"). Value), -1, -2, -2, -2)
%>&nbsp;&nbsp;&nbsp;&nbsp;<%=
FormatCurrency((rsItemKey.Fields.Item("Price").Val ue), -1, -2, -2, -2)
%><br>

<%
FilterParam = rsItemKey.Fields.Item("KeyNumber").Value
rsItemKeyProducts.Filter = "rsItemKeyProducts.KeyNumber = " & FilterParam
While (NOT rsItemKeyProducts.EOF)
%>
<%=(rsItemKeyProducts.Fields.Item("OrderNo").Value )%><%=FilterParam%><br>
<%
rsItemKeyProducts.MoveNext()
Wend
%>

<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsItemKey.MoveNext()
Wend
%>
Dec 10 '05 #1
1 2233
never mind - found it
rsItemKeyProducts.Filter = "KeyNumber = '" & FilterParam & "'"
Code originally designed for numeric key fields
Mine are alpha-numeric

"shank" <sh***@tampabay.rr.com> wrote in message
news:eJ**************@tk2msftngp13.phx.gbl...
I'm trying to use code I found on:
http://www.dmxzone.com/ShowDetail.as...d=394&offset=5

I've used it before without issue, but this time it's not working. The
nested records are not being filtered. They are all displayed on the very
first request. <%=FilterParam%> shows that the correct KeyNumber is
requested, but still all records are displayed.
Can anyone see what I'm missing?
thanks!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<%
While ((Repeat1__numRows <> 0) AND (NOT rsItemKey.EOF))
%>
<%=(rsItemKey.Fields.Item("Descrip").Value)%><br >
#<%=(rsItemKey.Fields.Item("KeyNumber").Value)%>&n bsp;&nbsp;&nbsp;&nbsp;Reg
Price&nbsp;<%=
FormatCurrency((rsItemKey.Fields.Item("RegPrice"). Value), -1, -2, -2, -2)
%>&nbsp;&nbsp;&nbsp;&nbsp;<%=
FormatCurrency((rsItemKey.Fields.Item("Price").Val ue), -1, -2, -2, -2)
%><br>

<%
FilterParam = rsItemKey.Fields.Item("KeyNumber").Value
rsItemKeyProducts.Filter = "rsItemKeyProducts.KeyNumber = " & FilterParam
While (NOT rsItemKeyProducts.EOF)
%>
<%=(rsItemKeyProducts.Fields.Item("OrderNo").Value )%><%=FilterParam%><br>
<%
rsItemKeyProducts.MoveNext()
Wend
%>

<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsItemKey.MoveNext()
Wend
%>

Dec 10 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: duncan.lovett | last post by:
PHP 4 MySQL 4.0.20 DW MW 2004 7.01 This problem is giving me a bit of a headache, and I'm getting nowhere with it so thought I'd open it up to all, any help would be greatly appreciated. ...
1
by: Joseph Ferris | last post by:
Hello, I am having an issue with page breaking that I hope someone will be able to help me with. Still a relative "newbie", and I thought this might be a good place to find some help. I have a...
0
by: mark | last post by:
My problem is I need to have a "nested" repeater. I have an array which I load into a hashtable - that part works great. I can setup the second repeater to work just fine, as long as it's not...
2
by: mark | last post by:
(not sure if this is the correct group) My problem is I need to have a "nested" repeater. I have an array which I load into a hashtable - that part works great. I can setup the second repeater...
1
by: Peter Kirk | last post by:
Hi in nested repeaters, how do I access data in the "outer" repeater from the "inner" repeater? For example, I have an ArrayList of RegionMenuItem objects. These objects contain a Region...
0
by: Simon Gare | last post by:
Hi, I need to calculate a total based on fields in a repeat region, these values are stored in an SQL db, all are numeric and written in ASP. fields are TOTAL_COST VAT ...
12
by: Rich Shepard | last post by:
I want to code what would be nested "for" loops in C, but I don't know the most elegant way of doing the same thing in python. So I need to learn how from you folks. Here's what I need to do: build...
0
by: rupalirane07 | last post by:
Both grids displays fine. But the problem is only parent datagrid sorting works fine but when i clik on child datagrid for sorting it gives me error: NullReferenceException error Any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.