Esona
01-20-2003, 09:40 PM
EDIT- I figured it out, thanks anyways =) (I'll still post it when I finish)
Thought I'd pester you guys some more =)
Ok, I'm on a roll for that 'delete user on exit' business, but I've run into yet another problem.
This is the code I'm using
Rs.Open "SELECT * from Onlines", Conn,1,3
Do While Not Rs.Eof
If Datediff("n",right(Rs("Last_Action"), 11), Time) => "5" then
Now, what I need to do is be able to delete that table, but it's already open.. is there any way I can do that? this is what I want it to finally look like (I know it won't work, just examples)
Rs.Open "SELECT * from Onlines", Conn,1,3
Do While Not Rs.Eof
If Datediff("n",right(Rs("Last_Action"), 11), Time) => "5" then
delete table
end if
Rs.MoveNext
Loop
Any ideas will help me out =)
I'll post the script when I'm done so all you other people that are trying to delete entries on exit can do it with a little more ease.
Thought I'd pester you guys some more =)
Ok, I'm on a roll for that 'delete user on exit' business, but I've run into yet another problem.
This is the code I'm using
Rs.Open "SELECT * from Onlines", Conn,1,3
Do While Not Rs.Eof
If Datediff("n",right(Rs("Last_Action"), 11), Time) => "5" then
Now, what I need to do is be able to delete that table, but it's already open.. is there any way I can do that? this is what I want it to finally look like (I know it won't work, just examples)
Rs.Open "SELECT * from Onlines", Conn,1,3
Do While Not Rs.Eof
If Datediff("n",right(Rs("Last_Action"), 11), Time) => "5" then
delete table
end if
Rs.MoveNext
Loop
Any ideas will help me out =)
I'll post the script when I'm done so all you other people that are trying to delete entries on exit can do it with a little more ease.