Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - active_users.inc problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

active_users.inc problem

 Post Reply Post Reply
Author
USSeR View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2003
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote USSeR Quote  Post ReplyReply Direct Link To This Post Topic: active_users.inc problem
    Posted: 19 April 2003 at 9:54am

Hi.

I think I messed up the database a little. Can't figure what's wrong there.

Here's my problem. When the script gets to this query (in active_users.inc file):

'Clean up old users
'Initilse sql statement
If strDatabaseType = "SQLServer" Then
 strSQL = "EXECUTE wwfSpDeleteActiveUser"
Else
 strSQL = "DELETE FROM tblActiveUser WHERE tblActiveUser.Active < Now() - 0.0070;"
End If

'Detlete from database
adoCon.Execute(strSQL)

When the query is executed I'm getting this:

Microsoft JET Database Engine error '80004005'

The search key was not found in any record.

/forum/active_users.inc, line 196

 

So I temporarily commented the Execute statement out.

What's could be wrong? Please help.



Edited by USSeR
Back to Top
USSeR View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2003
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote USSeR Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2003 at 10:17am

I think that the DB has become corrupted.

I ran the Compact and repair and it fixed it.

Can you tell me why this had happened?

It's Access with about 950 members.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2003 at 10:45am

Access sometimes has problems with the amount of updates needed for the active users feature.

If you are running version 7 then you can disable the active users feature from the admin area, if you are running version 6.x then it will probally be worth upgrading in a few weeks when the full version of version 7 is released and disabling the active users feature to prevent this form happening again.

Back to Top
USSeR View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2003
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote USSeR Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2003 at 9:55am
Thanks Borg.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.