I have a form named comboform that has a navigation bar and 3 subforms: application, permit, and certificate. The form permit is going to change but that change can't affect past data. I.e. If I look at a permit from last year it should look like the form from last year. The form permit will be changing often over the next few years. I don't want to keep adding subforms to comboform. I have the following permit forms:
permit - current permit form
permit2013-20180888 - permit form used from 2013 to September 1st 2018
permit2007-2012 - permit form used from 2007 to 2012
I already have the logic to call the different forms:
Code:
If permitno < 20180888 And permitno >= 20130000 Then
DocName = "permit2013-20180888"
ElseIf permitno < 20130000 And permit >= 20070000 Then
DocName = "permit2007-2012"
Else
DocName = "permit"
End If
DoCmd.OpenForm DocName, A_NORMAL
however when the form opens the navigation bar disappears because it is a part of comboform and not a part of the permit form. Is there a way open the other permit forms with navigation without including them in comboform? Can 1 subform open different forms? I.e. have a blank subform in comboform and when I click on permit in the navigation bar, the logic above is called, and the correct permit form name is put in the subform.