G
Guest
I have a form to record mail with or without cash/cheque enclosed. I have a
combo box to choose the mail type and I want to enable the payment related
fields only if the selected mail type includes a payment. I have disabled
these fields 'on open' in the form properties (which works Ok) and added an
afterupdate event to the type field to enable based on selection, which
doesn't work at all. Can anyone help ? I'm new to Access so be gently with
me. Code for both is:
Private Sub Form_Open(Cancel As Integer)
Me.Currency.Enabled = False
Me.Other.Enabled = False
Me.Amount.Enabled = False
Me.Label12.Visible = False
Me.Label13.Visible = False
Me.Label24.Visible = False
End Sub
Private Sub ID_AfterUpdate()
Select Case Me.[Type].Value
Case Is <> "Letter Only"
Me.Currency.Enabled = True
Me.Other.Enabled = True
Me.Amount.Enabled = True
Me.Label12.Visible = True
Me.Label13.Visible = True
Me.Label24.Visible = True
End Select
End Sub
combo box to choose the mail type and I want to enable the payment related
fields only if the selected mail type includes a payment. I have disabled
these fields 'on open' in the form properties (which works Ok) and added an
afterupdate event to the type field to enable based on selection, which
doesn't work at all. Can anyone help ? I'm new to Access so be gently with
me. Code for both is:
Private Sub Form_Open(Cancel As Integer)
Me.Currency.Enabled = False
Me.Other.Enabled = False
Me.Amount.Enabled = False
Me.Label12.Visible = False
Me.Label13.Visible = False
Me.Label24.Visible = False
End Sub
Private Sub ID_AfterUpdate()
Select Case Me.[Type].Value
Case Is <> "Letter Only"
Me.Currency.Enabled = True
Me.Other.Enabled = True
Me.Amount.Enabled = True
Me.Label12.Visible = True
Me.Label13.Visible = True
Me.Label24.Visible = True
End Select
End Sub