alander
Well-known member
Hi again.. my database for some reason is not committing changes.. I do not know why either..
The problem only lies with 2 tables, all other updates fine.. and i seriously cant find the reason why, i checked my access database for referential integrity, but i dun see any problem cos its the same as how i defined the other tables..
here is my code
i am using checkbox control..
It commits when i use a datagridview but not when i uses a checkbox control..
the checkbox control uses checkedState binded to the dataset..
i tried checked, and it doesnt work either
can anyone point it out to me what is wrong?
The problem only lies with 2 tables, all other updates fine.. and i seriously cant find the reason why, i checked my access database for referential integrity, but i dun see any problem cos its the same as how i defined the other tables..
here is my code
i am using checkbox control..
It commits when i use a datagridview but not when i uses a checkbox control..
VB.NET:
If noError AndAlso (Me.DsEmployee.HasChanges) Then
Me.Employee_ChildTableAdapter.Update(Me.DsEmployee.Employee_Child)
Me.Employee_Education_HistoryTableAdapter.Update(Me.DsEmployee.Employee_Education_History)
Me.Employee_WarningsTableAdapter.Update(Me.DsEmployee.Employee_Warnings)
Me.EmployeeContactInfoAndRemarksTableAdapter.Update(Me.DsEmployee.EmployeeContactInfoAndRemarks)
Me.EmployeePayRollTableAdapter.Update(Me.DsEmployee.EmployeePayRoll)
Me.Employee_Working_ExperienceTableAdapter.Update(Me.DsEmployee.Employee_Working_Experience)
Me.EmployeesInfoTableAdapter.Update(Me.DsEmployee.EmployeesInfo)
Me.Employee_Family_DataTableAdapter.Update(Me.DsEmployee.Employee_Family_Data)'not commiting (combo box control)
Me.Employee_Other_InfoTableAdapter.Update(Me.DsEmployee.Employee_Other_Info) 'not commiting (checkbox control)
Me.DsEmployee.AcceptChanges()
MessageBox.Show("Changes has been saved", "Saved", MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
DsEmployee.RejectChanges()
cmEmployee.Position = -1
End If
enableButtons()
disableInputs()
the checkbox control uses checkedState binded to the dataset..
i tried checked, and it doesnt work either
can anyone point it out to me what is wrong?