J
John Ortt
Hi everyone.
I have the following module which is intended to enable/disable data entry
in a subform.
Can anyone see what I am doing wrong please?
Thankyou,
John
P.S. subPeople1 is the name of the subform object on frmMainMenu. The form
it references is fsubpeople
-----------------
Private Sub cmdChangeDetails_Click()
If Me.cmdChangeDetails.Caption = "Edit Personnal Details" Then
Me.cmdChangeDetails.Caption = "Save Personnal Details"
Forms!frmMainMenu!fsubpeople.Form.Enabled = True
Forms!frmMainMenu!fsubpeople.Form.Locked = False
Else
Me.cmdChangeDetails.Caption = "Edit Personnal Details"
Forms!frmMainMenu!fsubpeople.Form.Enabled = False
Forms!frmMainMenu!fsubpeople.Form.Locked = True
End If
End Sub
I have the following module which is intended to enable/disable data entry
in a subform.
Can anyone see what I am doing wrong please?
Thankyou,
John
P.S. subPeople1 is the name of the subform object on frmMainMenu. The form
it references is fsubpeople
-----------------
Private Sub cmdChangeDetails_Click()
If Me.cmdChangeDetails.Caption = "Edit Personnal Details" Then
Me.cmdChangeDetails.Caption = "Save Personnal Details"
Forms!frmMainMenu!fsubpeople.Form.Enabled = True
Forms!frmMainMenu!fsubpeople.Form.Locked = False
Else
Me.cmdChangeDetails.Caption = "Edit Personnal Details"
Forms!frmMainMenu!fsubpeople.Form.Enabled = False
Forms!frmMainMenu!fsubpeople.Form.Locked = True
End If
End Sub