Hi guys,
I have a combo box where users choose an order type. Their selection will determine the visibility of subforms.
What I want to do is if the value doesn't change to skip this (like pressing the escape key). I tried using .oldvalue -
But no joy. Any ideas?
Thanks loads,
Jason
I have a combo box where users choose an order type. Their selection will determine the visibility of subforms.
Code:
Private Sub Combo_OrderType_Change()
If Me.Combo_OrderType = 1 Then Me.frm_OrderPart_Purchase.Visible = True Else Me.frm_OrderPart_Purchase.Visible = False
Me.frm_OrderPart_Purchase.Requery
End Sub
Code:
'If Me.Combo_OrderType.Value = Me.Combo_OrderType.OldValue Then GoTo NoChange
If Me.Combo_OrderType = 1 Then Me.frm_OrderPart_Purchase.Visible = True Else Me.frm_OrderPart_Purchase.Visible = False
Me.frm_OrderPart_Purchase.Requery
NoChange:
End Sub
Thanks loads,
Jason