I have tried to make a button who close the subform, but close all forms. need to close only subform.
I have tried diffrent code, but all fails. CLOSE button code are in PCSak form.
How to solve this?
Whats wrong? I tried different codes, but it fails. None of these are right or not in right place. examples under.
Expand|Select|Wrap|Line Numbers
- Me.Parent.PCSak.Visible = False
Expand|Select|Wrap|Line Numbers
- Me![PCSak].Visible = False
Expand|Select|Wrap|Line Numbers
- Me.Parent.STV_Feilsak.SetFocus
- Me.Parent.PCSak.Visible = False
Expand|Select|Wrap|Line Numbers
- Forms!Form_STV_Feilsak.ControlOnMainForm.SetFocus
- Forms!PCSak.SubformControlName.Visible = False
Expand|Select|Wrap|Line Numbers
- Me![STV_Feilsak].SetFocus
Expand|Select|Wrap|Line Numbers
- Me![STV_Feilsak]!SetFocus
- Me.Visible = False