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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding item in array

Status
Not open for further replies.

travisbrown

Technical User
Dec 31, 2001
1,016
This is what I want it to do. What's the right method?

IF rs.Fields("rec_id") IN nav_cid THEN

'nav_cid is an array created from a dash-delimited querystring value. e.g: SPLIT("2-15-22-531", "-")

hasKids = "sxicon3.gif"
ELSE
hasKids = "sxicon2.gif"
END IF
 
I thought maybe something like this, but it doesn't work either:

hasKids = "sxicon2.gif"
FOR EACH rs.Fields("rec_id") IN nav_cid
hasKids = "sxicon3.gif"
NEXT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top