DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 23 Aug 2007 06:26:05 -0700,    posted on: microsoft.public.dotnet.framework.adonet        back       

Thread Index
  1    Graybane


Accessing DataTable Problem   
Hi Folks,
I am having a problem reading an existing typed datatable. I am sure that I 
have over looked something simple but I am not seeing the forest for the 
trees. I am using the below code and the reader does not pickup any rows.

    Private MyDataSet As SomeDataSet
    Private MyDataTable As SomeDataSet.SomeDataTable
    
'The WhereClause is just date range SomeColumnDateValue >= #9/9/1999# AND 
SomeColumnDateValue <= #9/10/1999#
Private Function MyGetData(ByVal MyWhereClaus As String) As ArrayList
        
        'Configure and execute datareader
        Dim MyDataTable As New DataTable

        MyDataSet = New SomeDataSet
        MyDataTable = New SomeDataSet.SomeDataTable
        
        Dim MyArrayList As New ArrayList
        'Dim MyDataTable As New DataTable
        
        'I have tried both the table linkages
         MyDataTable = New SomeDataSet.SomeDataTable
        'or
         MyDataTable = MyDataSet.Tables("DataTableName")
        
        Dim MyExpression As String = MyWhereClaus
        Dim MySortOrder As String = Me.OptionSelection & " DESC"
        'The OptionSelection is SomeColumnName

       MyDataTable.Select(MyExpression, MySortOrder)
       Dim MyDataTableReader As New DataTableReader(MyDataTable)

I get a null result (0 rows) with the correct schema, it does not matter 
wether
I use the filter assignment or not.

Any help is appreciated
Date:Thu, 23 Aug 2007 06:26:05 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us