I have made a Form that got 6 comboboxes. So it is completely arbitrary for the user. The comboboxes work perfectly, they filter the information when for example when there are no Airports with a private operator in the state of Queensland, it will not show Private as an option in the combobox State.
The information what will show up in the detail section, hence every combobox is in the Header, dissapears once I go in Form view. When I but the Text boxes in the header section, weirdly enough they wont disappear but wont show the information either.
Pictures of Form view, Designview and the Code below.


Code:
Option Compare Database
Option Explicit
Private Sub cboAirport_AfterUpdate()
Dim strSQL As String
strSQL = "SELECT StateT.State, StateT.StateID, AirportT.Airport, AirportT.AirportID, YearT.Year, YearT.YearID, OperatorT.OperatorType, OperatorT.OperatorID, TierT.Tier, TierT.TierID, TypeOfOperationT.TypeOfOperation, TypeOfOperationT.TypeOfOperationID, PassengerT.PassengerMDAInbound, PassengerT.PassengerMDAOutbound, PassengerT.PassengerRegionalInbound, PassengerT.PassengerRegionalOutbound, PassengerT.PassengerInternationalInbound, PassengerT.PassengerInternationalOutbound, PassengerT.PassengerTotalTotal, AircraftMovementT.AirMovementMDAInbound, AircraftMovementT.AirMovementMDAOutbound, AircraftMovementT.AirMovementRegionalInbound, AircraftMovementT.AirMovementRegionalOutbound, AircraftMovementT.AirMovementINTLInbound, AircraftMovementT.AirMovementINTLOutbound, AircraftMovementT.AirMovementTotalTotal " & _
"FROM OperatorT INNER JOIN (ICAOCodeT INNER JOIN (TypeOfOperationT INNER JOIN ((TierT INNER JOIN (TierJointAirport INNER JOIN ((YearT INNER JOIN ((StateT INNER JOIN AirportT ON StateT.StateID = AirportT.StateID) INNER JOIN AircraftMovementT ON AirportT.AirportID = AircraftMovementT.AirportID) ON YearT.YearID = AircraftMovementT.YearID) INNER JOIN PassengerT ON (PassengerT.PassengerNrID = AircraftMovementT.AircraftMovementNrID) AND (YearT.YearID = PassengerT.YearID) AND (AirportT.AirportID = PassengerT.AirportID)) ON TierJointAirport.AirportID = AirportT.AirportID) ON TierT.TierID = TierJointAirport.TierID) INNER JOIN TypeOfOperationJointT ON (TierJointAirport.AirportID = TypeOfOperationJointT.AirportID) AND (YearT.YearID = TypeOfOperationJointT.YearID) AND (AirportT.AirportID = TypeOfOperationJointT.AirportID)) ON TypeOfOperationT.TypeOfOperationID = TypeOfOperationJointT.TypeOfOperationID) ON ICAOCodeT.ICAOID = AirportT.ICAOID) ON OperatorT.OperatorID = AirportT.OperatorID " & _
"WHERE YearT.YearID = " & Me.cboYear.Column(0) & " AND StateT.StateID = " & Me.cboState.Column(0) & " AND AirportT.AirportID = " & Me.cboAirport.Column(0) & " AND TypeOfOperationT.TypeOfOperationID = " & Me.cboOperation.Column(0) & " AND OperatorT.OperatorID = " & Me.cboOperator.Column(0) & " AND TierT.TierID = " & Me.cboTier.Column(0) & " AND StateT.StateID = " & Me.cboState.Column(0) & _
" ORDER BY StateT.State, AirportT.Airport, YearT.Year"
Debug.Print strSQL
Me.RecordSource = strSQL
Me.Requery
End Sub
Private Sub cboOperation_AfterUpdate()
If Not IsNull(Me.cboOperation) Then
Me.cboOperator.RowSource = "SELECT DISTINCT ArbitraryQ.OperatorID, ArbitraryQ.OperatorType" & _
" FROM ArbitraryQ" & _
" WHERE TypeOfOperationID = " & Me.cboOperation & _
" ORDER BY OperatorType"
Me.cboOperator = Null
Me.cboOperator.Requery
End If
End Sub
Private Sub cboOperator_AfterUpdate()
If Not IsNull(Me.cboOperator) Then
Me.cboTier.RowSource = "SELECT DISTINCT ArbitraryQ.TierID, ArbitraryQ.Tier" & _
" FROM ArbitraryQ" & _
" WHERE OperatorID = " & Me.cboOperator & _
" ORDER BY Tier"
Me.cboTier = Null
Me.cboTier.Requery
End If
End Sub
Private Sub cboState_AfterUpdate()
If Not IsNull(Me.cboState) Then
Me.cboAirport.RowSource = "SELECT DISTINCT ArbitraryQ.AirportID, ArbitraryQ.Airport" & _
" FROM ArbitraryQ" & _
" WHERE StateID = " & Me.cboState & _
" ORDER BY Airport"
Me.cboAirport = Null
Me.cboAirport.Requery
End If
End Sub
Private Sub cboTier_AfterUpdate()
If Not IsNull(Me.cboTier) Then
Me.cboState.RowSource = "SELECT DISTINCT ArbitraryQ.StateID, ArbitraryQ.State" & _
" FROM ArbitraryQ" & _
" WHERE TierID = " & Me.cboTier & _
" ORDER BY State"
Me.cboState = Null
Me.cboState.Requery
End If
End Sub
Private Sub cboYear_AfterUpdate()
If Not IsNull(Me.cboYear) Then
Me.cboOperation.RowSource = "SELECT DISTINCT ArbitraryQ.TypeOfOperationID, ArbitraryQ.TypeOfOperation" & _
" FROM ArbitraryQ" & _
" WHERE YearID = " & Me.cboYear & _
" ORDER BY TypeOfOperation"
Me.cboOperation = Null
Me.cboOperation.Requery
End If
End Sub