Wrox Programmer Forums
|
BOOK: Beginning Microsoft Visual Basic 2008 ISBN: 978-0-470-19134-7
This is the forum to discuss the Wrox book Beginning Microsoft Visual Basic 2008 by Thearon Willis, Bryan Newsome; ISBN: 9780470191347
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Microsoft Visual Basic 2008 ISBN: 978-0-470-19134-7 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 August 20th, 2009, 12:40 PM
Registered User
 
Join Date: Aug 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 17-Data Binding

I have been going through the examples (Try It Out) in this book most of them I get but this chapter has been kicking me in the head. So I have decided to submit and hopefully get some help. After writing all the code for both Try It Out sections I have one that relatively works and the second one is not working at all. Let me explain my issues.


On the first Try It Out...

The Bound Data Set is suppose to show the following fields.
au_lname
au_fname
title
price

From my understanding that the code will pull the fields automatically from the pubs database as needed.

However, when I Bind the data source it pulls.
au_id
au_lname
au_fname
phone
address
city
state
zip
contract

What am I missing?

Thanks for the help! Hopefully this is clear enough if not tell me what you need from me to make this more clear.
 
Old August 20th, 2009, 04:10 PM
Registered User
 
Join Date: Aug 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Smile I got it.

Wrong Connection String.

What I had at first
Code:
("server=localhost\;database=pubs;user id=sa;password=;")

What Fixed it
Code:
("server=localhost\SQLEXPRESS;Integrated Security=TRUE;")





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 17 HenzFast BOOK: Beginning Microsoft Visual Basic 2008 ISBN: 978-0-470-19134-7 2 April 14th, 2009 03:28 AM
Chapter 17 first Try It Out paloyme Visual Basic 2005 Basics 0 April 17th, 2006 04:34 AM
Chapter 17 - Report Data Source Granted BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 February 21st, 2006 10:53 AM
Chapter 17 Gaby BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 3 September 8th, 2005 11:50 AM
data grid in chapter 17, page 708 gcpeters BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 January 16th, 2004 01:48 AM





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