Exception Details: System.IndexOutOfRangeException

Results 1 to 2 of 2

Thread: Exception Details: System.IndexOutOfRangeException

  1. #1
    Join Date
    Dec 1969

    Default Exception Details: System.IndexOutOfRangeException

    With this:<BR>if (objDataReader["Type"].ToString() == "N")<BR><BR>I get this error:<BR>Exception Details: System.IndexOutOfRangeException: Type<BR><BR>Type is a text field in an access database that only allows the values of "N" or "W"<BR><BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Exception Details: System.IndexOutOfRangeExcep

    Did you try using the ordinal position of the "TYPE" column? I do not know if the fields of the DataReader can be referenced by name.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts