I was wondering if someone could help me.
I have an array which is like this
fileArray = '2612(25).jpg', '2012(15).jpg', '2012(31).jpg', '2012(21).jpg', '2012(58).jpg'
Now i have the following code.
Set DBConn = CreateObject("ADODB.Connection")
DBConn.Open strOLEDBString, strODBCUser, strODBCPass
SQL = "SELECT p, sum(vote) as likes FROM vote WHERE p in (" & fileArray & ") GROUP BY p ORDER BY sum(vote) desc"
Set rs = DBConn.Execute(SQL)
If rs.eof Then
HTMLTable = HTMLTable & " Nothing returned"
Else
HTMLTable = HTMLTable & rs("p")
End If
The results only show the last filename in the array, it should be displaying all of them.