p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 18th, 2009, 12:01 PM
Registered User
Points: 21, Level: 1
Points: 21, Level: 1 Points: 21, Level: 1 Points: 21, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Access Connection via VB 2008 Chapter 16

I went to Microsoft and downloaded the NWind.mdb.

Created yet another project.

Executed all the steps in "Try It Out Binding Data To A DataGridView Control" all 12 of them. (Chapter 16)

Nothing in the DataGridView.

I installed a BindingNavigator control. It is empty and blank.

I looked at the generated code and XML producted by VB Studio for the connection. What a horror!!! The app generator must be on piecework per line of code.

I spent $850.00 on a new lap top HP Pavilion dv7 running Windows Vista Premium. SP1

I spent $650.00 on Visual Studio 2008 Version 9.0.21022.8 RTM

I spent about $400.00 on Technological Tomes including:, Beginning Visual Basic 2008, Thearon Willis, Bryan Newsome $44.88, Professional Visual Basic 2008, Bill Evjen, Billy Hollis, Bill Sheldon, Kent Sharkey.$59.99.

All this to get away from VBA.

It not like I can't use VB 2008, I have written a parser for HPGL-2 to XML. Its not that I can't research, I have written a Windows Meta File to XML converter, and converted all of my VBA libraries from Access. I actually like VB and the Library Of Congress documentation that comes with it.

To say I'm spinning my wheels is like describing, Brook Burke as a "bi pedal humanoid". At this point I have 60 view hits on my original thread. No one offered a solution or a hint. The implication is that no one connectes to Access or the solution is not that obvious. I am at the point where I would accept from any of the forum members "you're a dumb ass" as a complement if it fixed my problem.

I don't think Mr. Willis, or Mr. Newsome scans the forum that often!!

regards Bruce
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 10th, 2009, 05:40 PM
Authorized User
Points: 211, Level: 4
Points: 211, Level: 4 Points: 211, Level: 4 Points: 211, Level: 4
Activity: 12%
Activity: 12% Activity: 12% Activity: 12%
 
Join Date: Jun 2006
Location: Orpington, Kent, United Kingdom.
Posts: 51
Thanks: 1
Thanked 1 Time in 1 Post
Default

Bruce, Can you upload the code your using ? Try for example a very simple Access generated Select command using the wizard e.g. " SELECT * FROM Customers " If this works, the chances are it is in your coding. Are you using System.OleDb, or System.Sql, remember to import the relevant namespaces. Let me know. Liam.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old August 25th, 2009, 11:01 PM
Wrox Author
Points: 147, Level: 2
Points: 147, Level: 2 Points: 147, Level: 2 Points: 147, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2006
Location: , , .
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Bruce,

I would really like to help you, but without getting your code it is very hard. You have my personal email address from while back. If you zip up your code and send it to me I can help you. Just leave the DB out if it is too big. Thanks, Bryan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old October 23rd, 2009, 03:44 AM
Registered User
Points: 14, Level: 1
Points: 14, Level: 1 Points: 14, Level: 1 Points: 14, Level: 1
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Sep 2009
Location: Portland, OR
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access nrthwind / VB connection error as well

I'll reference pg #548, step #12:

I followed all steps up until this accurately, except since I am using Access 2007 I have slightly different query in nrthwind db.

Instead of my query populating I receive the following error:

"A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll"

Any ideas?

Thanks,
Christina
__________________
Christina
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old October 23rd, 2009, 03:53 AM
Registered User
Points: 14, Level: 1
Points: 14, Level: 1 Points: 14, Level: 1 Points: 14, Level: 1
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Sep 2009
Location: Portland, OR
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default A: running Vista X64OS with VB studio

ok, my error was solved!! When using 64 bit Vista Operating System with VB Studio the processor must be an X86



- Select "Project"

- Select "Properties" for your project

- Select "Compile"

- Select "Advanced Compile Options" (scroll to bottom of window ;) )

' - Select "x86" instead of "AnyCPU"

We think we are upgrading to fewer problems... haha.. thank you google!
__________________
Christina
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #6 (permalink)  
Old November 9th, 2009, 11:11 AM
Authorized User
Points: 211, Level: 4
Points: 211, Level: 4 Points: 211, Level: 4 Points: 211, Level: 4
Activity: 12%
Activity: 12% Activity: 12% Activity: 12%
 
Join Date: Jun 2006
Location: Orpington, Kent, United Kingdom.
Posts: 51
Thanks: 1
Thanked 1 Time in 1 Post
Default Accessing 'Access' Nwind DB

Bruce, any luck yet ? If not try the following, to 'narrow down' the problem. Open the Nwind DB in Access, and copy some or all of the data in one table, into a newly cretaed D.B. ( by you, not Microsoft ), calling it anything you like e.g. 'NwindTest'. then write some basic code to connect to an OleDb type Database, from a V.B. Form 1, filling a Data Grid View with a very simple S.Q.L. command such as " select * from tablename " Do you see where I'm coming from ? Good luck.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 16 Sql connection error flashmanTom BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 May 22nd, 2008 06:04 PM
Beginning VB.NET 2003 Chapter 16 siegmeister BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 6 December 15th, 2006 08:07 AM
Beginning VB.Net 2003 - Chapter 16 dougmcgee BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 7 July 15th, 2005 05:42 AM
The Database Connection in Chapter 16 - DW-MX Shubhada BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 2 May 4th, 2004 02:17 AM
Beginning VB.Net Chapter 16 tjs206 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 February 10th, 2004 02:28 PM



All times are GMT -4. The time now is 07:27 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc