Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Error adding new records
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error adding new records

 Post Reply Post Reply
Author
proware View Drop Down
Newbie
Newbie


Joined: 15 March 2010
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote proware Quote  Post ReplyReply Direct Link To This Post Topic: Error adding new records
    Posted: 15 March 2010 at 5:15am
I get the following error when add ing new records to Webwiz. 9.66

I checked the access table and noticed that thread_id is not set to auto increment ( i thought it was like this in an older version).

Is this my problem? If not, any ideas what is going on?

I changed it to be not required and it saves with a Null (which is obviously not right).

Any ideas what I should do?

Cheers
David

Server Error in Forum Application
An error has occurred while writing to the database.
Please contact the forum administrator.

Support Error Code:- err_Access_save_new_post_data
File Name:- new_post.asp

Error details:-
Microsoft JET Database Engine
The field 'tblThread.Thread_ID' cannot contain a Null value because the Required property for this field is set to True. Enter a value in this field.Cry


Edition: Free Express Edition
Running Version: 9.66
Database Backend: Access

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: 15 March 2010 at 8:54am
The field tblThread.Thread_ID should be an auto increment field in access and also a primary key.

If this is a new installation download the forum again and use a new copy of the database, as you r database is corrupted.

If this is an existing Web Wiz Forums Access database then chnage the field to an auto increment field and set it as the primary key. You should then also compact and repair the database to fix whatever corruption in the database has caused this issue.
Back to Top
proware View Drop Down
Newbie
Newbie


Joined: 15 March 2010
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote proware Quote  Post ReplyReply Direct Link To This Post Posted: 15 March 2010 at 10:22pm
This is not a new installation.

It was upgraded from an older version of Web Wiz to version 9.

Access will not let me convert an existing column to AutoIncrement if it already has data.

So I am a bit stuck.

Any other ideas?

Cheers
David

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: 16 March 2010 at 1:44pm
Your only option would be to go back to a previous database backup before the database became corrupted.

This is one of the pitfalls of using Access it does easily become corrupted, which is why it is recommended to use SQL Server or even mySQL instead.
Back to Top
Putz22 View Drop Down
Moderator Group
Moderator Group


Joined: 06 May 2008
Location: United States
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote Putz22 Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2010 at 6:37pm
Bruce is right.. Hopefully you kept a backup of your DataBase... If not then you might have to reinstall the WWF again.. with a clean install.. not unless you want to go through line by line to fix the code in your Database.
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.