View Single Post
  #4 (permalink)  
Old March 16th, 2005, 06:39 AM
Thearon's Avatar
Thearon Thearon is offline
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Peter,

This simplest solution for you is to comment out the line of code that contains this IF statement:

If objDataReader.HasRows Then

Don't forget the also comment out the corrseponding End If statement.

As far as your other error goes the line should have been coded as:

For intIndex As Integer = 0 To objDataReader.FieldCount - 1

The intIndex variable is declared inline as part of the For statement.

Thearon
Reply With Quote