I have a field called txtSessionType. There are five possible types and of these five they open three different subforms.
The types Coaching Session and Side by Side Coaching Session open the subfrmEmployeeSessionsCalls.
The types Personal Development Session and Other Documentation Session open the subfrmOtherSessions.
The type Monthly Review opens the subfrmMonthlyReviewSession.
I can open the different subforms based on the condition of different types. The problem is I don't know how to close the form that no longer is needed if the txtSessionType was changed to a type that uses one of the other forms. I'm not a programmer so I'm pretty lost. Here is what I have so far.
If Me.subfrmEmployeeSessions.Form.txtSessionType Like "Coaching Session" Then
Me.subfrmEmployeeSessions.Form.subfrmEmployeeSessionsCalls.Form.Visible = True
ElseIf Me.subfrmEmployeeSessions.Form.txtSessionType Like "Side by Side Coaching Session" Then
Me.subfrmEmployeeSessions.Form.subfrmEmployeeSessionsCalls.Form.Visible = True
Else
Me.subfrmEmployeeSessions.Form.subfrmEmployeeSessionsCalls.Visible = False
End If
Thanks in advance.
The types Coaching Session and Side by Side Coaching Session open the subfrmEmployeeSessionsCalls.
The types Personal Development Session and Other Documentation Session open the subfrmOtherSessions.
The type Monthly Review opens the subfrmMonthlyReviewSession.
I can open the different subforms based on the condition of different types. The problem is I don't know how to close the form that no longer is needed if the txtSessionType was changed to a type that uses one of the other forms. I'm not a programmer so I'm pretty lost. Here is what I have so far.
If Me.subfrmEmployeeSessions.Form.txtSessionType Like "Coaching Session" Then
Me.subfrmEmployeeSessions.Form.subfrmEmployeeSessionsCalls.Form.Visible = True
ElseIf Me.subfrmEmployeeSessions.Form.txtSessionType Like "Side by Side Coaching Session" Then
Me.subfrmEmployeeSessions.Form.subfrmEmployeeSessionsCalls.Form.Visible = True
Else
Me.subfrmEmployeeSessions.Form.subfrmEmployeeSessionsCalls.Visible = False
End If
Thanks in advance.