mtagliaferri
Registered User.
- Local time
- Today, 11:57
- Joined
- Jul 16, 2006
- Messages
- 550
I am working with a frmPSA that contains a sfrmPSATimeline, both are locked for edits and additions.
Within the frmPSA I have a cmdEdit button with the below code to unlock both forms for editing, and this works fine.
I have a frmPSAList with a cmdAdd button to add a new record, so I am looking at unlocking the frmPSA and the sfrmPSATimeline similarly to the edit function with the below code.
However I get a Compile error ‘Method or data member not found’
Thanks
Within the frmPSA I have a cmdEdit button with the below code to unlock both forms for editing, and this works fine.
Code:
Private Sub CmdEdit_Click()
Me.Form.AllowEdits = True
Me.FirstName.SetFocus
Me.CmdEdit.Visible = False
Me.sfrmPSATimeline.Form.AllowEdits = True
Me.sfrmPSATimeline.Form.AllowAdditions = True
End Sub
I have a frmPSAList with a cmdAdd button to add a new record, so I am looking at unlocking the frmPSA and the sfrmPSATimeline similarly to the edit function with the below code.
Code:
Private Sub CmdAdd_Click()
DoCmd.OpenForm "frmPSA", acNormal, "", "", acAdd
Forms!frmPSA!CmdEdit.Visible = False
Forms!frmPSA!FirstName.SetFocus
Me.sfrmPSATimeline.Form.AllowEdits = True
Me.sfrmPSATimeline.Form.AllowAdditions = True
End Sub
However I get a Compile error ‘Method or data member not found’
Thanks