test = datediff("n",cdate([minonline]/2),[start]) < now()
connect22.execute "update members set status = 'offline' where "& test &" and status = 'online'",,128
connect22.close : set connect22 = nothing
response.write test
strSQL = "update members set status = 'offline' where dateadd('n',cint([minonline]/2),[start]) < now() and status = 'online'"
Response.Write strSQL
connect22.execute(strSQL),,128