Is there a way..

Results 1 to 2 of 2

Thread: Is there a way..

  1. #1
    Join Date
    Dec 1969

    Default Is there a way..

    Whereby I can force the 2 Response.Writes inside the Loop to only write 1 time and then be skipped? Leaving everything else to be written every time?<BR><BR>If Not rs.BOF Or Not rs.EOF Then<BR> While Not rs.EOF<BR>Response.Write " rs("FIrstName") & "&nbsp;" & rs("MiddleInitial") & "&nbsp;" & rs("LastName") & "&nbsp;" & rs("Degree")<BR>Response.Write "&#060;b&#062;Conference Name<BR>Lecture Name<BR>Date<BR>Hours&#060;/b&#062;"<BR><BR>totalHours = totalHours + rs("NumberOfHours")<BR>&#039 recNum = recNum +1<BR>Response.Write ...<BR><BR>rs.MoveNext<BR>Wend

  2. #2
    shaffer Guest

    Default RE: Is there a way..

    Well... if I understand you question correctly, couldn&#039t you do this?<BR><BR>boolFirstTime = True<BR>If Not rs.BOF Or Not rs.EOF Then<BR>While Not rs.EOF<BR> if boolFirstTime = True then<BR> boolFirstTime = False<BR> response.write "..."<BR> response.write "..."<BR> end if<BR> totalHours = totalHours + rs("NumberOfHours")<BR> response.write "..."<BR> rs.movenext<BR>wend

Posting Permissions

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