URGENT Help in Updating records in c#.NET using Access Database.

  • Thread starter Thread starter keerthi kamalapuri via DotNetMonster.com
  • Start date Start date
K

keerthi kamalapuri via DotNetMonster.com

My table name is projectDetails.
Primary keys : AirportID,ProjectId,PhaseID,SequenceID
Fields : Name

I am trying to find a specific row and update the value of that row
by the following command.

DataSet1.ProjectDetailsRow r =
dataSet11.ProjectDetails.FindByAirportIDProjectIDSequenceIDPhaseID
("MSP",1,1,1);
r.name = "something";

When I run this at r.name = "something" , it gives me NullPointer exeption

Thanks in advance
 
keerthi said:
My table name is projectDetails.
Primary keys : AirportID,ProjectId,PhaseID,SequenceID
Fields : Name

I am trying to find a specific row and update the value of that row
by the following command.

DataSet1.ProjectDetailsRow r =
dataSet11.ProjectDetails.FindByAirportIDProjectIDSequenceIDPhaseID
("MSP",1,1,1);
r.name = "something";

When I run this at r.name = "something" , it gives me NullPointer exeption

Thanks in advance

Did you check the method actually succeed before assign r.name =
"something"?
 
Back
Top