i found the sick part
on open event of man form i have this code
Code:
If Me.NewRecord Then
If Me.OpenArgs <> "" Then
With Me.Partecipanti
.SetFocus
.Form.AllowAdditions = True
DoCmd.RunCommand acCmdRecordsGoToNew
.Form![PartecipanteID].SetFocus
.Form!PartecipanteID = 793
.Form!Qualifica = "Head Hunter"
DoCmd.RunCommand acCmdRecordsGoToNew
If InStr(Me.OpenArgs, "\") Then
.Form!PartecipanteID = Left(Me.OpenArgs, InStr(Me.OpenArgs, "\") - 1)
Else
.Form!PartecipanteID = Me.OpenArgs
End If
.Form!Qualifica = "Candidato"
End With
Else
With Me.Partecipanti
.SetFocus
.Form.AllowAdditions = True
DoCmd.RunCommand acCmdRecordsGoToNew
.Form![PartecipanteID].SetFocus
.Form!PartecipanteID = 793
End With
End If
End If
(i just polished parts that are just cosmetic or do not make anything related to the issue)
as soon the form opens the records in subform are saved in sharepoint.
i'm wondering if there is a way to just set values in subform without saving it in sharepoint
this is my beforeUpdate event of the subform
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer) If SaveRcd = True Then
Me.Undo
Cancel = True
End If
End Sub
SaveRcd is a global variable that is set to true when i click the button i use to exit the form wothout saving