Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET Databases
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases 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 18th, 2009, 12:15 PM
Authorized User
Join Date: Jan 2009
Posts: 21
Thanks: 4
Thanked 0 Times in 0 Posts

Can some one HELP,

I am working in Chapter 10 of Beginning VB.NET Database Programming. I am calling a function from my business logic layer and it gets a dataset schema and I see that the dataset is not null\nothing. But once I come back to the calling routine and I try to initialize a datarow to the dataset that was just created in the function call it is empty and I get an error because of the the null\nothing object reference, in this case the datarow object here is the code I am using
'Get a new Project DataSet
objDataSet = objProjects.GetNewProjectDS()
'Initialize a datarow object from the Project DataSet
Dim objDataRow As DataRow =  _
Old March 20th, 2009, 06:29 AM
Thearon's Avatar
Wrox Author
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts

Please check your code against the downloaded code. I ran the project and got no such error. The datarow was properly initialized.

Old March 20th, 2009, 10:14 AM
Authorized User
Join Date: Jan 2009
Posts: 21
Thanks: 4
Thanked 0 Times in 0 Posts
Red face Misspelled Table Name in Command


I misspelled the Table Name in the dataset therefore the table was not found in the dataset and the object could not be initialized and I got an error. I was able to track this down by using an IF Block to test for the Table Name in the Dataset. Once I realized it was not there I checked the spelling and found the error. Thanks for your help....

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can we use same Dataset Object? gaurav_jain2403 VS.NET 2002/2003 6 February 3rd, 2006 01:49 AM
create a Line object ,Box object in CR at Runtime? thanhnt Pro VB 6 1 May 16th, 2005 06:51 AM
DataRow Or Class Object? RM82 BOOK: ASP.NET Website Programming Problem-Design-Solution 3 June 11th, 2004 09:12 PM
Newbie who needs help with DataSet object!!! rboyle ADO.NET 1 March 10th, 2004 08:25 PM

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