Hi,
I have a check box which when the user unchecks. It will set its value to false and then submit this to Access. however,it is not allowing me submit the form due to "Form cannot be submited: Form does not contain any new data"
Code is as follows:
function msoxd__Activity_Status_attr::OnBeforeChange(eventObj)
{
try {
if (eventObj.NewValue != eventObj.OldValue){
var resp = XDocument.UI.Confirm("Are you sure you want to delete this record?", 4);
if (resp != 6 ) {
eventObj.ReturnStatus = false;
}else{
XDocument.Submit();
eventObj.ReturnStatus = true;
}
}
} catch (e) {}
}