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 February 1st, 2006, 02:08 AM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error following Ch3 example

Hi,

On page 44, step 13, I click the ellipsis button on Tables and Columns Specification property. (My selected Relationship is FK_Person_Person) The Tables and Columns dialogue opens. I choose POUser as the Primary Key table. The FK table already set to Person. In the POUser Column (left side of the dialogue window), I choose 'ID' and in the Person column (right side) I choose 'POUserID'.

I click OK to set the foreign key, as instructed. It is indicated in the book that this will continue back to the Foreign Key Relationships dialogue box, which I can then close to return to the table view in VB Express. However, when I click OK to set that foreign key, I get an error instead:

"The columns in table 'POUser' do not match an existing primary key or UNIQUE constraint."

I've checked over the instructions, and I am fairly certain I have not missed a step. Yet this error pops up and I cannot continue with the examples.

Any ideas?

http://renkai.com
 
Old February 1st, 2006, 02:18 AM
Wrox Author
 
Join Date: Jan 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Renkai,

It sounds like the ID field has not been set to be the primary key. Alternatively, it could be that you have not set its unique and autonumber properties.

Could you please check both tables to see if they have primary keys set? Also, just double check that the POUserID field in the Person table is defined as an integer.

Thanks
Andrew
 
Old February 3rd, 2006, 03:55 AM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Andrew, thanks very much - that was it. I knew I was missing something but didn't know what it was!

I'm enjoying your book so far, thanks again for the response.

http://renkai.com
 
Old February 3rd, 2006, 05:37 AM
Wrox Author
 
Join Date: Jan 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No problem Renkai. I am glad you're enjoying the book - I'm always happy to hear from people who've got something out of it.

Cheerio
Andrew





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch3 Testing mod_rewrite speculumcm BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 1 September 8th, 2011 11:48 AM
CH3 allowDefinition='MachineToApplication' jtavenner BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 May 2nd, 2008 07:57 AM
Ch3 Appendix MySQL Syntax Error amin7b5 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 April 16th, 2008 01:49 PM
Problems in Ch3 and Ch4 Maram BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 August 4th, 2005 09:28 AM
Ch3 Pg97 Runtime Error TaoEntropy Dreamweaver (all versions) 3 September 10th, 2003 12:21 PM





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