I want to convert a sql sum function into an if/then statement.
This obviously is not working and I am doing something wrong by not understanding it. Any help would be appreciated.Code:sql = "SELECT SUM (Credits)[moneypaid] from Tablename where date > '1/1/2012' and customerid = '8796'" if moneypaid = 100 then response.write "something" end if
Thanks


(right side on this reply ) and agree


Comments on this post