I have a mainform called STV_Feilsak and a subform called PCSak. I use Access 2013. and vba access.
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.
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.
Code:
Me.Parent.PCSak.Visible = False
Code:
Me![PCSak].Visible = False
Code:
Me.Parent.STV_Feilsak.SetFocus Me.Parent.PCSak.Visible = False
Code:
Forms!Form_STV_Feilsak.ControlOnMainForm.SetFocus Forms!PCSak.SubformControlName.Visible = False
Code:
Me![STV_Feilsak].SetFocus
Code:
Me![STV_Feilsak]!SetFocus Me.Visible = False
Comment