Count records

Results 1 to 4 of 4

Thread: Count records

  1. #1
    bob sinclair Guest

    Default Count records

    Hi!<BR><BR>I have a small problem with counting... I have selected sevral records from a databas and sorted them. I would like to display a sorted list (i have already sorted them) and automatacly put 1, 2, 3, 4... infront of them !<BR><BR>Thanx ! any help are appretiated<BR><BR>/Bob

  2. #2
    David Brower Guest

    Default RE: Count records

    Try this:<BR><BR>Counter = 0<BR><BR>While Not rs.EOF<BR> Response.Write counter & chr(9) & rs.Fields("somevalue") <BR> Counter = counter + 1<BR>Wend<BR><BR>

  3. #3
    bob sinclair Guest

    Default RE: Count records

    Thanx!!! works perfectly!! but i wonder what & chr(9) stands for... <BR><BR>Thanks again

  4. #4
    David Brower Guest

    Default RE: Count records

    Chr(9) is used to insert a space into a string etc...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts