I lang tid har samarbejdsbranchen fokuseret på at forbedre enhedsfunktioner – bedre kameraer, klarere lyd og smartere software. Men den virkelige forvandling handler ikke om funktioner.
Hi thomas I think montago want to be able to enter thre criteria and count how many hits he gets on each row. I dont think its necessary using the Alias column though.
If Request("text") <> "" then session("text") = Request("text") Q_arr = split(Request("text")) strSQL = "Select Count(*) as maxValue,Video_ID,Song_ID,Artist,Title,Year from " for each x in Q_arr sqlnum = sqlnum + 1 if sqlnum > 1 then strSQL = strSQL & " UNION ALL (Select * from Videos where (Artist & Title & Year) like '%"& X &"%')" else strSQL = strSQL & "(Select * from (Select * from Videos where (Artist & Title & Year) like '%"& X &"%')" end if next strSQL = strSQL & " order by Title) group by Video_ID,Song_ID,Artist,Title,Year order by Count(*) desc, Artist, Title asc" Session("SQL") = strSQL End if
Set rs = conn.execute(Session("SQL")) set rs_cnt = conn.execute("Select count(*) as numResults from (" & Session("SQL") & ")")
maxValue = cint(rs("maxValue")) Do while not rs.eof Match = "Matched: " & FormatNumber(cint(rs("maxValue"))/maxValue*100,2) & "%" rs.movenext loop
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.