Hello all,
And Merry Christmas .
I have the folowing situation :
- main form L2_FtGroup_Contacts
- subform (continous,made to look like a datasheet) ,with AllowEdits NO by default - L2_FtGroup_Contacts_sub
-in the Detail section of the subform (continuous) i have a button that would like to turn on the AllowEdits property of the subform in order for the users to be able to modify or not each records.
-and one save button that saves the change and turns off the AllowEdits property of the same subform.
Although I've tried a lot of combinations can't seem to be able to make the first button turn on the property for the subform.
Could you please help me?
Below some alternatives tried on the on click event of the togle/command button:
For any of the combinations above when i press it nothing happens and can't edit the fileds.
If I do it manually - properties and set the Allow Edits to Yes.. works.
Thank you.
Kind regards,
And Merry Christmas .
I have the folowing situation :
- main form L2_FtGroup_Contacts
- subform (continous,made to look like a datasheet) ,with AllowEdits NO by default - L2_FtGroup_Contacts_sub
-in the Detail section of the subform (continuous) i have a button that would like to turn on the AllowEdits property of the subform in order for the users to be able to modify or not each records.
-and one save button that saves the change and turns off the AllowEdits property of the same subform.
Although I've tried a lot of combinations can't seem to be able to make the first button turn on the property for the subform.
Could you please help me?
Below some alternatives tried on the on click event of the togle/command button:
Code:
'Me.L2_FtGroup_Contacts_sub.Form.AllowEdits = True
'Forms!L2_FtGroup_Contacts!L2_FtGroup_Contacts_sub!Form.AllowEdits = True
'Me!L2_FtGroup_Contacts_sub.Form.AllowEdits = True
'L2_FtGroup_Contacts.Form.AllowEdits = True
'Forms!L2_FtGroup_Contacts!L2_FtGroup_Contacts_sub.AllowEdits = False
'If Me.OpenArgs = "Edit" Then
'Me.frmSubForm.Form.AllowAdditions = True
'Me.L2_FtGroup_Contacts.L2_FtGroup_Contacts_sub.Form.AllowEdits = True
'Me.frmSubForm.Form.AllowDeletions = True
'If Me.AllowEdits = True Then
'Me.AllowEdits = False
'Forms![L2_FtGroup_Contacts]!L2_FtGroup_Contacts_sub.AllowAdditions = True
'Else
'Me.AllowEdits = True
'Me.Toggle35.Caption = "Edit On"
'End If
For any of the combinations above when i press it nothing happens and can't edit the fileds.
If I do it manually - properties and set the Allow Edits to Yes.. works.
Thank you.
Kind regards,