B
Bob Barrows [MVP]
Why not? You're simply replacing a recordset loop with an array loop.
Jeff said:When (in Access) I put in any kind of ORDER BY, it prompts me for a
paramater. So what I was doing was calling the query from asp page.
In the query itself, when I look at in access, it is sorted by
username. So in my query on the asp page, I am calling this:
Jeff said:Bob, what I ended up doing, and it worked for me, is adding to the
statement.
I added
(SUM(IIf([outcome]='Win' And [extra_match]=0,1,0))+SUM(IIf([outcome]='Win'
And [extra_match]=1,1,0))) AS TotalWinsAll
That way, I could sort by that, and it does come out right.
Thanks a bunch
Jeff said:And I get an error there Bob
Microsoft VBScript compilation error '800a03ee'
Expected ')'
/tour_rankings.asp, line 46
for i=0 to ubound9arData,2)
No. The WHERE clause always follows the FROM clause (which contains the ONJeff said:One more thing on this please Bob,
If I wanted to narrow it down more, and add WHERE member_status =
'Active' this would be the table that you got the username out of to
begin with. would it go something like
FROM members as mb where mb.member_status = 'Active' left join
matches as m ON mb.username= m.username
GROUP BY mb.username
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.