943,195 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 148
  • ASP RSS
Aug 3rd, 2010
0

recordset where value equals loop through array value

Expand Post »
Hi

Please can some one help me urgently with this
I have the following code
[code]
<%
Dim productColors, myString, myArray
myString = (prodRS.Fields.Item("prodColor").Value)
myArray = Split(myString,",")
Dim counter
for counter = 0 to UBound(myArray)
productColors = (myArray(counter))
Next
%>
[icode]
Which works as intended in splitting the string

What I now wish to achieve is a Recordset from another table
which will return records with the same values as returned by the split string function


eg:
"SELECT * FROM tbl_color WHERE colorCode = ????"
???? being each of the values returned by the split string function

If it makes a difference I am using an Access Database

Thanks in anticipation
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kaden712 is offline Offline
5 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Select syntext for database search
Next Thread in ASP Forum Timeline: Upload Image..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC