Originally posted by JJenson goto www.vmcplugins.com/forum/file_library.aspGot a test account for us?
Dim IsFree : IsFree = Request.QueryString("IsFree")
strSql = "SELECT FC.F_CAT, FC.ID, COUNT(FF.ID) AS COUNTOFID "
strSql = strSql & "FROM " & strTablePrefix & "FILECAT FC "
strSql = strSql & "LEFT JOIN " & strTablePrefix & "FILEMANAGER FF "
strSql = strSql & "ON FC.ID = FF.F_CAT "
strSql = "WHERE F_ISFREE = " & IsFree & ""
strSql = strSql & " GROUP BY FC.F_CAT, FC.ID "
Set rsX2 = my_Conn.Execute (strSql)
This correct?<
strSql = strSql & "INNER JOIN " & strTablePrefix & "FILEMANAGER FF "
strSql = strSql & "ON FC.ID = FF.F_CAT "
strSql = "SELECT FC.F_CAT, FC.ID, COUNT(FF.ID) AS COUNTOFID "
strSql = strSql & "FROM " & strTablePrefix & "FILECAT FC "
strSql = strSql & "LEFT JOIN " & strTablePrefix & "FILEMANAGER FF "
strSql = strSql & "ON FC.ID = FF.F_CAT "
strSql = strSql & "WHERE F_ISFREE = " & Request.QueryString("IsFree")
strSql = strSql & " GROUP BY FC.F_CAT, FC.ID "
Set rsX2 = my_Conn.Execute (strSql)
strSql = "SELECT *"
strSql = strSql & " FROM " & strTablePrefix & "FILEMANAGER "
strSql = strSql & "WHERE F_CAT = " & showmethecat & " "
strSql = strSql & "ORDER BY " & Sortme
Set rs = Server.CreateObject("ADODB.Recordset")
strSql = strSql & "WHERE F_CAT = " & showmethecat & " AND F_ISFREE = " & Request.QueryString("IsFree")
Originally posted by JJenson Alright I found out my problem was that I didn't remove one quote also I needed to put a space a the beggining of the group by claus.It's always the simple things, isn't it?!
Originally posted by JJenson I am hoping the more I do this I can just spot these things.Believe me, the better you get the less easily you spot simple mistakes like this!