Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 18 Apr 2006 12:10:02 -0700,    group: microsoft.public.dotnet.datatools        back       


System.IndexOutOfRangeException   
I'm trying to view the data in a very basic Access Database, but after 
executing the project, navigating to the form reading from the DB (with a 
DataGrid via Visual C++ .NET), the application throws this error:

An unhandled exception of type 'System.IndexOutOfRangeException' occurred in 
system.data.dll

Additional information: Cannot find table 0.

I have double and triple checked my config file and I know the path to the 
DB is correct so I'm pretty confused on what this error means, considering 
the the MDB file is populated with entries. This is the code the compiler 
jumps on debuging:

          PatientData::Patient* pat = new PatientData::Patient();
          DataSet* ds = pat->SearchPatients(PatientName->Text);
          PatientSearchDataGrid->DataSource = ds->Tables->get_Item(0);

Any insight you could give me into the nature of this problem would be 
appreciated.
date: Tue, 18 Apr 2006 12:10:02 -0700   author:   kdot

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us