Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object reference not set to an instance of an object
Message
From
21/03/2004 12:36:29
 
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
Object reference not set to an instance of an object
Miscellaneous
Thread ID:
00888294
Message ID:
00888294
Views:
47
I have the following code:
      Dim loData As DataSet
      loData = New DataSet
      Dim loDT As New OleDbDataAdapter("select * from Login into cursor Temp", _
      "Provider=VFPOLEDB.1;Data Source=D:\Login.dbf;Password='';Collating Sequence=MACHINE")

      loDT.Fill(loData)

      ' Get it into a view
      Dim loView As DataView
      loView = loData.Tables("Temp").DefaultView
I get the message "Object reference not set to an instance of an object" on the last line. The cursor Temp exists. So, why is it not recognized?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform