Wrox Programmer Forums
|
BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8
This is the forum to discuss the Wrox book Wrox's Visual Basic 2005 Express Edition Starter Kit by Andrew Parsons; ISBN: 9780764595738
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 1st, 2008, 05:51 AM
Authorized User
 
Join Date: Mar 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 8 Problems This Time

Initially I was getting a message that my UserName was too long to be stored in the database. I tried increasing the size of the column in the database but this did not help. I found out, by trial and error that by using the .Substring() function on My.User.Name I could remove the computer name from the authenticated name and the program would accept this.

However when I click OK to have the new user added to the database it is not added?????
I manually added the username to the database and assigned a password and now I do not get the new user message but the password is not recognised??????

Any suggestions before I tear out what is left of my hair?
 
Old April 1st, 2008, 09:38 AM
Authorized User
 
Join Date: Mar 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Found part of the problem.

When the login screen appears it has the truncated name in the User text box (This name is also in the POUser table). However, when the password check is carried out the program is only comparing the password with the password for the first entry in the table (this is one I put in when testing earlier) and does not find the correct entry.

If I enter the password for the first line I am given access to the program even though the users names are different. Doh!!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 17: don't waste time ishim BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 October 27th, 2007 12:46 PM
Problems with Chapter 3 Steve887 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 12 January 18th, 2007 07:43 PM
Refresh button?? Every time? (Chapter 2) phplearner BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 September 4th, 2006 09:03 AM
Problems with" i=i+1" and calculating time tronnen XSLT 4 June 6th, 2005 04:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.