473,387 Members | 1,590 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.

Add counter to a dataset

Hi Everyone,
I have populated a dataset from a view. I want to add a counter to each record in the dataset. I want to display the dataset in an active report with the counter. i am breaking by some field, this should also reset the counter at each break. how would i set the counter in the dataset?
Jan 9 '07 #1
2 1185
Hi Everyone,
I have populated a dataset from a view. I want to add a counter to each record in the dataset. I want to display the dataset in an active report with the counter. i am breaking by some field, this should also reset the counter at each break. how would i set the counter in the dataset?
hi...
have u tried it by using count(*)???

eg: select count(*),col1,col2,col3 from table_name;

but dis will give u incremented ctr at each row...without any break...

hope dis helps...
thanx and rgrds..
sand...
Jan 9 '07 #2
Hi Everyone,
I have populated a dataset from a view. I want to add a counter to each record in the dataset. I want to display the dataset in an active report with the counter. i am breaking by some field, this should also reset the counter at each break. how would i set the counter in the dataset?
Hey!
unfortunately this is not a short answer...so before I send you the answer, can you please send an example of what you have for this so far to include any HTML? and I will send you and example of what you need to do.

Basically, at ItemDatabound, we will designate which rows contain the counter, then we will apply some style attributes to those rows, thus breaking them up nicely!
Jan 9 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Shane | last post by:
:) I am following a tutorial for php (hudzilla.org) absolutely loving it however I am having trouble with the counter example <?php // your content here... $filename = 'counter.txt'; // our...
16
by: Paul Rubin | last post by:
I'd like to have a function (or other callable object) that returns 0, 1, 2, etc. on repeated calls. That is: print f() # prints 0 print f() # prints 1 print f() # prints 2 # etc. ...
0
by: Earl Anderson | last post by:
KB Article Q140908 provided the following function to create an Auto Incrementing Counter: Function Next_Custom_Counter () On Error GoTo Next_Custom_Counter_Err Dim MyDB As Database Dim...
1
by: Sam Collett | last post by:
I am looping through a table to get the number of replies to a post on a discussion system. 'posID' is the primary key (i.e. thread id), 'posParent' is the parent thread. However, it only seems to...
2
by: Toodles | last post by:
I have a dataset coming back in my .net app, and I need to look at a particular field in that dataset, and if there are multiple instances of that field (>1) then I don't want it to send a...
0
by: Trevor L. | last post by:
I decide to put a custom Hit Counter on my page (below). Then I won't be reliant on the standard FrontPage one which uses webbots. It is called by <b>Hit Counter: </b><!--#include...
5
by: jasonchan | last post by:
How would you set up a counter in javascript that goes from 5 to 0 This is what i have so far and it is not displaying in the div container "counter" for some reason... <!DOCTYPE html PUBLIC...
3
blackstormdragon
by: blackstormdragon | last post by:
Here were our instructions: "My mother always took a little red counter to the grocery store. The counter was used to keep tally of the amount of money she would have spent so far on that visit to...
2
by: gumbercules | last post by:
I am designing a site that is regulary updated with new podcasts. I would like to be able to have a counter next to each podcast showing how many hits/listens/plays/views each particular podcast has...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.