Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 977599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:55:40+00:00 2026-05-16T03:55:40+00:00

While my initial problem counting the running number of rows in a table has

  • 0

While my initial problem counting the running number of rows in a table has already been solved, I would still like to know the origin of the following behaviour in SQL Server Reporting Service (I hope the example is clear enough):

I created a report with the following dataset:

select 1 AS Column1, 'First' AS Column2
union
select 2 AS Column1, 'Second' AS Column2
union 
select 2 AS Column1, 'Third' AS Column2
union
select 3 AS Column1, 'Fourth' AS Column2
union
select 3 AS Column1, 'Fifth' AS Column2

In my report I have created a List with a Group called ‘list1_Details_Group’ which is based on ‘Column’, I have added a table in this List with two columns; one with a row number (‘=RowNumber(“list1_Details_Group”)’) and one with ‘Column2’.
When I put a ‘Page break at end’ of my Group the output is as expected:

alt text http://www.freeimagehosting.net/uploads/80536e09f9.png

However when I add a Textbox containing the following: ‘=”Number of items: ” + ReportItems(“RowNumber”).Value.ToString’, the first rownumbers on the next pages go wrong:

alt text http://www.freeimagehosting.net/uploads/716694d095.png

The first rownumber of the table gets the same value as the value of the textbox from the previous page!
I did not expect this behaviour, can anyone explain why this occurs?

BTW: when the contents of the Textbox is ‘=”Number of items: ” +RowNumber(“list1_Details_Group”).ToString’, the report is printed without problems!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:55:41+00:00Added an answer on May 16, 2026 at 3:55 am

    Where are you adding the textbox? In the detail group? Under the table?

    I would take a different approach to this. I would present it all in a single table show the group header and footer (with merged columsn) and do a count of the number of items in the group by making use of the scope function. This way it is always consistent and there won’t be any issues with the row counts.

    The Rownumber is very brittle and small changes to your layout or expressions could break it due to different subtle details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been struggling with this problem, and while something elegant would be preferred any
I have been struggling with a problem for a while and so far have
I encountered a problem while using a generic interface. Initial condition was as follows:
Possible Duplicate: Class construction with initial values While I was looking at c++ example
I'm having difficulty iterating through records while scrolling window. My initial thought was to
I'm trying to do an initial setup with Hibernate in Eclipse, while deploying with
While developing an application using gwt in ecliplse crashed. Now the server is running
I'm new to Ocaml. The problem I'm having is keeping track of the number
I've run into a problem with data-binding inside control template while the property is
I'm trying to solve problem 14 on project euler, and my initial brute force

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.