'System.Data.DataRowCollection.this[int]' has some invalid arguments

               i am facing a wonderful problem , i can't understand why this error

in my .aspx.cs file

OleDbDataAdapter adpTimeBar = new OleDbDataAdapter("select Emp_Name, Access_Date, Access_Time from Access_Reports ", _OleDbConnString); //_OleDbConnString is string varible used for connection string

        DataTable dtTimeBeta = new DataTable();
DateTime AccessDate1 = new DateTime(0001, 01, 01, 00, 00, 00);
        DateTime AccessDate2 = new DateTime(0001, 01, 01, 00, 00, 00);

AccessDate2 = Convert.ToDateTime(dtTimeBeta.Rows[0]["Access_Date"]);
for (UInt32 i = 0; i < dtTimeBeta.Rows.Count; i++)
            AccessDate1 = Convert.ToDateTime(dtTimeBeta.Rows[i]["Access_Date"]);// error is on this line    "System.Data.DataRowCollection.this[int]' has some invalid arguments"

Plese help me its urgent. Thanks in advance
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pratima PharandeCommented:
for (UInt32 i = 0; i < dtTimeBeta.Rows.Count -1 ; i++)

use  dtTimeBeta.Rows.Count -1
EE_NavigatorAuthor Commented:
Thanks for commenting..
but i am not i am not getting you the recomemned line by You is allready used
EE_NavigatorAuthor Commented:
oh yes You Mean in-stead of UInt32 i should use only int ?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

EE_NavigatorAuthor Commented:
oh yes , now no error. Thanks Pratima mcs..
Pratima PharandeCommented:
:) , glad to see it helps you
Pratima PharandeCommented:
why my first comment is not accepted ?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.