473,770 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error: "No data exists for the row/column"

Hi,

I want to show the whole recordset. There are 42 records and 2 fields.
....
comd = New System.Data.Ole Db.OleDbCommand ("select name,lok from pc",
oConnection)
dtreader = comd.ExecuteRea der
for i=0 to 41
for j=0 to 1
dtreader.Read()
f=dtreader.item (j)
Response.Write( f)
next
Response.Write( "<br>")
next
....

I get the error: "No data exists for the row/column"
I didn't defined any table, so why row/column error?
Thanks
May 10 '06 #1
2 4515
You have 42 rows, but you are attempting to read it 84 times. You have a
loop within a loop. Perhaps you want your Read() outside of the inner loop

Jeff
"Chris" <cc*@sdsd.dc> wrote in message
news:uf******** ******@TK2MSFTN GP05.phx.gbl...
Hi,

I want to show the whole recordset. There are 42 records and 2 fields.
...
comd = New System.Data.Ole Db.OleDbCommand ("select name,lok from pc",
oConnection)
dtreader = comd.ExecuteRea der
for i=0 to 41
for j=0 to 1
dtreader.Read()
f=dtreader.item (j)
Response.Write( f)
next
Response.Write( "<br>")
next
...

I get the error: "No data exists for the row/column"
I didn't defined any table, so why row/column error?
Thanks

May 10 '06 #2
Of course, thanks a lot.
"Jeff Dillon" <je********@hot mail.com> wrote in message
news:eI******** ******@TK2MSFTN GP04.phx.gbl...
You have 42 rows, but you are attempting to read it 84 times. You have a
loop within a loop. Perhaps you want your Read() outside of the inner loop

Jeff
"Chris" <cc*@sdsd.dc> wrote in message
news:uf******** ******@TK2MSFTN GP05.phx.gbl...
Hi,

I want to show the whole recordset. There are 42 records and 2 fields.
...
comd = New System.Data.Ole Db.OleDbCommand ("select name,lok from pc",
oConnection)
dtreader = comd.ExecuteRea der
for i=0 to 41
for j=0 to 1
dtreader.Read()
f=dtreader.item (j)
Response.Write( f)
next
Response.Write( "<br>")
next
...

I get the error: "No data exists for the row/column"
I didn't defined any table, so why row/column error?
Thanks


May 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4698
by: 21novembre | last post by:
Hi all, I made a question several days before to describe my strange trouble of mysqldump. But I still can't figour it out. Well, I just want to ask another question whether I could just backup my databases by copying the data folder to some place? Then if I meet some disaster, could I just copy the backup folder back to recover my databases? Thank you. Zh.y
1
8251
by: Sandro Daehler | last post by:
Hy i have a problem with the following statement: SELECT MAX(id) FROM apconfig; if i send this statement i got the following error: ERROR: column "id" does not exist
5
7247
by: Martin Jørgensen | last post by:
Hello again, Sorry to bother but I guess my C++ book isn't very good since it obviously contains errors so the program code doesn't work with g++. However I don't understand what the problem is. Last time the problem was that "using namespace std" apparently had a "link" class/object defined already. Now I get: error: no matching function for call to 'String::String(String)'
2
2702
by: Praveen Chandra | last post by:
Hi, I am trying to build a static library, while building the library i am getting the following error: fatal error C1189: #error : "No sstream/strstream implementation" Following is the code that is giving error: #ifdef HAVE_CONFIG_H
3
5860
by: uday.sen | last post by:
Hi, I am porting a piece of code from VC++ to linux platform. My compiler is g++ 3.2.2. I am getting following error: no matching function for call to A::setResponse(std::wstring) candidates are A::setResponse(std::wstring &) ---> This is indeed the signature I am using this function as:
8
36586
by: rssd | last post by:
can somebody help me. I'm trying to read some excel files but i'm always getting this error No type library matching "Microsoft Excel" found at D:\Genes_datasets\exp.pl line 4 Win32::OLE(0.16): GetOleTypeLibObject() Not a Win32::OLE::TypeLib object at C:/Perl/site/lib/Win32/OLE/Const.pm line 45. Died at D:\Genes_datasets\exp.pl line 6. i don't ve microsoft excel but open office installed, i think that could be a problem. But these...
6
14390
by: crs27 | last post by:
Hai, Im getting this error.There is a column by name "nr_first_name" in the table "gistl_new_request". Yet im getting as that dose not exist.Would like to now what is the cause of it. Thank You
0
2428
by: Gwen Crutcher | last post by:
I keep getting the error "No value given for one or more required parameters", but not sure why. Can anyone please look at my code snipet and see if you see any reason why I could be getting this error. I am just trying to update a record using MS Access 2003 as the front end. This code is in VB.NET Private Sub cmdUpdate_Click() On Error GoTo Err_cmdUpdate_Click Dim rstUsers As New ADODB.Recordset
1
8674
by: JaganMohanRao | last post by:
i have create a table and inserted a values init. when i am getting the values it is throwing the exception "ERROR: column "dtype" of relation "xxxx" does not exist" where xxxx is table name. if any body knows the solution kindly help me Thanks in advance .. Jagan
0
9595
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9432
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8891
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7420
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2822
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.