Results 1 to 2 of 2

Thread: Loop

  1. #1
    Join Date
    Dec 1969

    Default Loop

    Hi, just wondering if anybody knows a loop to pick out the number of items in a table? Thanks, joanne

  2. #2
    Eddie Campbell Guest

    Default RE: Loop

    What do you mean?<BR><BR>If you mean use a loop to step through the records in a table then do this:<BR><BR>Do until MyRs.Eof<BR> Response.Write MyRs("MyField")<BR> MyRs.MoveNext<BR>Loop<BR><BR>If you want a count of the number of records in a table, try using the MyRs.RecordCount or turning the rs into an array with GetRows().

Posting Permissions

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