I was wondering if there is any way to not open a subform when the main form is opened but have it open after a record is created. Is this possible or do I need to make it a seperate form and tie it together with a macro?
Try these two code snippets. The first hides the subform when you open the main form. The second makes that subform visible when you add a new record. It worked for me.
Private Sub Form_Open(Cancel As Integer)
Me!Subform.Visible = False
End Sub
Private Sub Form_BeforeInsert(Cancel As Integer)
Me!Subform.Visible = True
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.