Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

This should be working but I don't see why is not...

Status
Not open for further replies.

TonyU

Technical User
Feb 14, 2001
1,317
US
[tt]

I've been looking at this piece of code for about 15 minutes and I can't find where the problem is and why my field is not looping

I need another pair of eyes

<select name=&quot;supervisoremail&quot; size=&quot;1&quot;>
<option value=&quot;supervisoremail&quot;>Your supervisor
email
</option>
<%
While (NOT rsDepartments.EOF)
%>
<option value=&quot;<%=(rsDepartments.Fields.Item(&quot;email&quot;).Value)%>&quot; ><%=(rsDepartments.Fields.Item(&quot;email&quot;).Value)%></option>
<%
rsDepartments.MoveNext()
Wend
If (rsDepartments.CursorType > 0) Then
rsDepartments.MoveFirst
Else
rsDepartments.Requery
End If
%>
</select>

***********************
All I'm getting to display is:

Your supervisor
email


[tt]&quot;A Successful man is one who can build
a firm foundation with the bricks
that others throw at him&quot;
[/tt]

banana.gif
rockband.gif
banana.gif
 
[tt]

I've been working on this way to long. I need a break.
I found the problem. My database was empty. [hammer]
[roll2]
[tt]&quot;A Successful man is one who can build
a firm foundation with the bricks
that others throw at him&quot;
[/tt]

banana.gif
rockband.gif
banana.gif
 
Heh, I've never done that before...no, really, why don't you believe me [wink]
Sounds like it's coffee break time :)
-Tarwn The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch, and a user with an idea
-computer saying (Wiz Biz - Rick Cook)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top