Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not finding instance of dataset

Status
Not open for further replies.

PoppapumpJ

Programmer
Dec 17, 2001
86
US
This is the error I keep getting when trying to work with a Dataset.

Object reference not set to an instance of an object.


Here is my code.

public function BuildPublishersList() as datagrid
dim dsPublishers as dataset()
dim objDatabase as clsDatabase()
dim x as string

'clsDatabase is a Class Mod that returns a dataset based on the supplied SQL. Schema = source
objDatabase.SQL = "Select * from Publishers"
dsPublishers = objDatabase.ReturnDataset

'This is where the error occurs
x = dsPublishers.Tables("Publishers").Columns("PubName").caption


end function
 
It would seem as though no dataset is coming from your returnDataset method That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top