Oh, your talking about the spooky login! 
In the Set SQL String, you could set the top SQL string to :
AND Password='"&T2&"' AND LoginCount < 6"
In the database match, you could try :
Now:
objRs.fields.item(11).Value = objRs.fields.item(11).Value + "1"
Change:
objRs.fields.item(11).Value = objRs.fields.item(11).Value + "1"
LoginCount = objRs.fields.item(11).Value
If LoginCount = 5 then objRs.fields.item(9).value = 0
Its not a very clean way of doing it, I prefer just the SQL.
They would get "details not found" and couldnt log in anyway. Im not sure what deactivating would do any better?
------------------
Spooky
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!