Private Sub Form_Current()
'If cboFormat is null do not show text boxes
If IsNull(cboFormat) Or Me.Format = "" Then
Me.txtCD.Visible = False
Me.txtMini.Visible = False
End If
'If cboFormat contains a value show appropriate text box
If Me.cboFormat.Value = "CD" Then
Me.txtCD.Visible = True
Me.txtMini.Visible = False
Else
If Me.cboFormat.Value = "MiniDisc" Then
Me.txtMini.Visible = True
Me.txtCD.Visible = False
End If
End If
End Sub
--------------------------------------
Private Sub cboFormat_AfterUpdate()
'If cboFormat is null do not show text boxes
If IsNull(cboFormat) Or Me.Format = "" Then
Me.txtCD.Visible = False
Me.txtMini.Visible = False
End If
'If cboFormat contains a value show appropriate text box
If Me.cboFormat.Value = "CD" Then
Me.txtCD.Visible = True
Me.txtMini.Visible = False
Else
If Me.cboFormat.Value = "MiniDisc" Then
Me.txtMini.Visible = True
Me.txtCD.Visible = False
End If
End If
End Sub