Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 March 7th, 2005, 07:48 PM
Authorized User
 
Join Date: Mar 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.net question

I am trying to run Wrox "Beginning VB.net 2nd edition example" in chapter 16 pg650 and I am getting an error saying:
An unhandled exception of type' system.data.oleDb.oledbException'
occured in system.data.dll
here is the code:
Private Sub FillDataSetAndView()
        'initialize a new instance of the dataset object..
        myDS = New DataSet

        'fill the dataset object with data ...
        myAdapter.Fill(myDS, "authors")
        'set the dataview object to the dataset object...
        myDV = New DataView(myDS.Tables("authors"))

        'set our currencyManager object to the dataview object..
        myCurrencyManager = CType(Me.BindingContext(myDV), CurrencyManager)
    End Sub
thanks for your help

 
Old March 31st, 2005, 06:29 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

can u specify exactly in which line u r getting this exception
here u hv not written any Select statement to initialize ur DataAdapet






Similar Threads
Thread Thread Starter Forum Replies Last Post
VB and ASP.NET question RomeyRome BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 December 20th, 2007 07:20 PM
vb.net realeted question monika.vasvani ASP.NET 1.0 and 1.1 Professional 1 October 15th, 2007 08:29 AM
VB.Net question on Windows VB.Net datagrids dmsousa VS.NET 2002/2003 1 January 19th, 2005 02:45 PM
VB.NET question loganscott2000 VS.NET 2002/2003 8 May 4th, 2004 05:27 PM





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