Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Deleted "Guest User" - howto undo this
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Deleted "Guest User" - howto undo this

 Post Reply Post Reply
Author
leiti View Drop Down
Groupie
Groupie


Joined: 16 February 2005
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote leiti Quote  Post ReplyReply Direct Link To This Post Topic: Deleted "Guest User" - howto undo this
    Posted: 09 June 2006 at 8:43am
Hello,
 
i just have deleted my "Guest" User from the Access database.
Now posting as Guest is not possible anymore. (I know my fault ...)
 
Is there any way, to "undo" this, which mean to insert a new guest user?
 
Thanks for your help.
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: 09 June 2006 at 9:43am
This is a big problem, and unless you are good with database could be difficult to undo.

If you tell me what database version you are using I should be able to give you some tips on how to directly edit the database to fix this issue.
Back to Top
leiti View Drop Down
Groupie
Groupie


Joined: 16 February 2005
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote leiti Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2006 at 10:05am
Thanks,
 
I use Access 2003.
 
I tried to change the fieldtype from counter to number and insert guest user with ID 2, but changen the fieldtype is not possible.
 
So I tried to delete the relationship between the author and the two other tables, but when I tried to make a new relationship, i was not able to do this.
 
Thanks for your help.
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: 09 June 2006 at 1:11pm
You will need to find a way to turn off the auto-numbering so you can enter a guest account with the ID of 2

This is hardcoded into the forum, and if you can not find away to do this certain features within your forum will not run.
Back to Top
leiti View Drop Down
Groupie
Groupie


Joined: 16 February 2005
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote leiti Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2006 at 3:01pm
For all people with the same problem - here is the simple solution:
 
Import a new Author table as tblauthor1 to your database.
 
Run the following SQL Statement:
 
INSERT INTO tblAuthor (Author_ID, Group_ID, Username, Password, User_Code, Time_offset, Time_offset_hours)
SELECT Author_ID, Group_ID, Username, Password, User_Code, Time_offset, Time_offset_hours
FROM tblAuthor1
WHERE (([tblAuthor1].[Author_ID]=2));
 
this will insert the guest user with Author_ID = 2
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.