DotNetNewbie
Programmer
Hi,
I am sure this is something really really simple, but for the life of me I cannot see the mistake:
I have an SQL database which I am retrieving information from, however when I retrieve any date information I get the following error:
System.IndexOutOfRangeException was unhandled
The field within the database is a date field, which contains a number of records, all the dates are as follows:
12/01/09
The line on which the error appears is:
TxtDatePurchased.Text = DataRS.Item("PurchasedDate").ToString
Any ideas, I know it is going to be something really simple.
Cheers in advance.
D
I am sure this is something really really simple, but for the life of me I cannot see the mistake:
I have an SQL database which I am retrieving information from, however when I retrieve any date information I get the following error:
System.IndexOutOfRangeException was unhandled
The field within the database is a date field, which contains a number of records, all the dates are as follows:
12/01/09
The line on which the error appears is:
TxtDatePurchased.Text = DataRS.Item("PurchasedDate").ToString
Any ideas, I know it is going to be something really simple.
Cheers in advance.
D